smaller #inspect output for wiki and page objects
This commit is contained in:
@@ -390,5 +390,9 @@ module Gollum
|
|||||||
|
|
||||||
find_page_in_tree(map, name, '')
|
find_page_in_tree(map, name, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
%(#<#{self.class.name}:#{object_id} #{name} (#{format}) @wiki=#{@wiki.repo.path.inspect}>)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -601,5 +601,9 @@ module Gollum
|
|||||||
rescue Grit::GitRuby::Repository::NoSuchShaFound
|
rescue Grit::GitRuby::Repository::NoSuchShaFound
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
%(#<#{self.class.name}:#{object_id} #{@repo.path}>)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user