This commit is contained in:
rick
2010-08-02 15:34:25 -07:00
parent f0b22390fb
commit 6609b2d636
+4
View File
@@ -52,6 +52,10 @@ module Gollum
@blob && @blob.name
end
# Public: The canonical page name without extension, and dashes converted
# to spaces.
#
# Returns the String name.
def name
filename.split('.')[0..-2].join('.').gsub('-', ' ')
end