Skip to content

Commit

Permalink
Add #inspect method to views
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Jul 3, 2016
1 parent 2b89154 commit afd519c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/nanoc/base/views/config_view.rb
Expand Up @@ -41,5 +41,9 @@ def [](key)
def each(&block)
@config.each(&block)
end

def inspect
"<#{self.class}>"
end
end
end
4 changes: 4 additions & 0 deletions lib/nanoc/base/views/mixins/document_view_mixin.rb
Expand Up @@ -76,5 +76,9 @@ def reference
def raw_content
unwrap.content.string
end

def inspect
"<#{self.class} identifier=#{unwrap.identifier}>"
end
end
end

0 comments on commit afd519c

Please sign in to comment.