Skip to content

Commit

Permalink
smaller #inspect output for wiki and page objects
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Jul 21, 2011
1 parent c0bf387 commit ad5ec77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gollum/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -390,5 +390,9 @@ def find_sub_page(name)

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 changes: 4 additions & 0 deletions lib/gollum/wiki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -601,5 +601,9 @@ def tree_map_for(ref)
rescue Grit::GitRuby::Repository::NoSuchShaFound
[]
end

def inspect
%(#<#{self.class.name}:#{object_id} #{@repo.path}>)
end
end
end

0 comments on commit ad5ec77

Please sign in to comment.