Method: Nanoc::Core::DependencyProps#inspect
- Defined in:
- lib/nanoc/core/dependency_props.rb
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/nanoc/core/dependency_props.rb', line 54 def inspect (+'').tap do |s| s << 'Props(' s << (raw_content? ? 'r' : '_') s << (attributes? ? 'a' : '_') s << (compiled_content? ? 'c' : '_') s << (path? ? 'p' : '_') if @raw_content.is_a?(Set) || @raw_content.is_a?(Array) @raw_content.each do |elem| s << '; raw_content(' s << elem.inspect s << ')' end end if @attributes.is_a?(Set) || @attributes.is_a?(Array) @attributes.each do |elem| s << '; attr(' s << elem.inspect s << ')' end end s << ')' end end |