Gollum.canonical_name -> Page.cname

This commit is contained in:
Tom Preston-Werner
2010-04-19 17:07:10 -07:00
parent addf3bb721
commit 0b848d720c
5 changed files with 18 additions and 19 deletions
-13
View File
@@ -10,17 +10,4 @@ require 'gollum/markup'
module Gollum
VERSION = '0.0.1'
# Convert a human page name into a canonical page name.
#
# name - The String human page name.
#
# Examples
# Gollum.canonical_name("Bilbo Baggins")
# # => 'Bilbo-Baggins'
#
# Returns the String canonical name.
def self.canonical_name(name)
name.gsub(/ /, '-')
end
end