tomdocd
This commit is contained in:
@@ -52,6 +52,10 @@ module Gollum
|
|||||||
@blob && @blob.name
|
@blob && @blob.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Public: The canonical page name without extension, and dashes converted
|
||||||
|
# to spaces.
|
||||||
|
#
|
||||||
|
# Returns the String name.
|
||||||
def name
|
def name
|
||||||
filename.split('.')[0..-2].join('.').gsub('-', ' ')
|
filename.split('.')[0..-2].join('.').gsub('-', ' ')
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user