smaller #inspect output for wiki and page objects

This commit is contained in:
risk
2011-07-21 15:27:56 -07:00
parent c0bf387cb4
commit ad5ec77f41
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -390,5 +390,9 @@ module Gollum
find_page_in_tree(map, name, '')
end
def inspect
%(#<#{self.class.name}:#{object_id} #{name} (#{format}) @wiki=#{@wiki.repo.path.inspect}>)
end
end
end
+4
View File
@@ -601,5 +601,9 @@ module Gollum
rescue Grit::GitRuby::Repository::NoSuchShaFound
[]
end
def inspect
%(#<#{self.class.name}:#{object_id} #{@repo.path}>)
end
end
end