lib/gollum/frontend/app.rb
# Extract the path string that Gollum::Wiki expects
Extract the path string that Gollum::Wiki expects
Extract the path string that Gollum :: Wiki expects
def extract_path(file_path)
        path = file_path.dup
        path << 'foo.tmp' if file_path =~ /\/$/
        pn = Pathname.new(path).dirname.to_s.sub(/^\//,'')
        pn unless ['','.','/'].include?(pn)
      end
def extract_path ( file_path ) path = file_path . dup path << 'foo.tmp' if file_path =~ / \/ $ / pn = Pathname . new ( path ) . dirname . to_s . sub ( / ^ \/ / , '' ) pn unless [ '' , '.' , '/' ] . include? ( pn ) end
Extract the path string that Gollum::Wiki expects
Extract the path string that Gollum :: Wiki expects
file_path