Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.274 kB
class String
# not Windows compatible
def to_file_path
self.gsub(".", "/")
end
def to_page_title
self.gsub("/", ".")
end
def short_page_title
self.to_page_title.split('.')[1]
end
def namespace
self.to_page_title.split('.')[0]
end
end
Jump to Line
Something went wrong with that request. Please try again.