Method: Mill::Resource#inspect
- Defined in:
- lib/mill/resource.rb
#inspect ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/mill/resource.rb', line 76 def inspect "<%p> input_file: %p, output_file: %p, path: %s, date: %s, public: %p, content: <%p>, parent: %p, siblings: %p, children: %p" % [ self.class, @input_file ? @input_file.relative_to(@site.input_dir).to_s : nil, @output_file ? @output_file.relative_to(@site.output_dir).to_s : nil, @path, @date.to_s, @public, @content&.class, parent&.path, siblings.map(&:path), children.map(&:path), ] end |