class String
Public Instance Methods
namespace()
click to toggle source
# File lib/string_ext.rb, line 15 def namespace self.to_page_title.split('.')[0] end
short_page_title()
click to toggle source
# File lib/string_ext.rb, line 11 def short_page_title self.to_page_title.split('.')[1] end
to_file_path()
click to toggle source
not Windows compatible
# File lib/string_ext.rb, line 3 def to_file_path self.gsub(".", "/") end
to_page_title()
click to toggle source
# File lib/string_ext.rb, line 7 def to_page_title self.gsub("/", ".") end