Skip to content

Commit

Permalink
Better inspect output for Bridgetown::Collection (#968)
Browse files Browse the repository at this point in the history
* Better inspect output for Collection

* fix line length
  • Loading branch information
jaredcwhite authored Jan 3, 2025
1 parent 16128e0 commit 8995906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridgetown-core/lib/bridgetown-core/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def entry_filter
#
# @return [String]
def inspect
"#<#{self.class} @label=#{label} resources=#{resources}>"
"#<#{self.class} #{label}: #{resources.count} metadata=#{metadata.inspect} " \
"static_files: #{static_files.count}>"
end

# Produce a sanitized label name
Expand Down

0 comments on commit 8995906

Please sign in to comment.