Class: DMark::Nodes::RootNode
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
Constructor Details
This class inherits a constructor from DMark::Nodes::Node
Instance Method Details
#inspect(indent = 0) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/dmark/nodes.rb', line 16 def inspect(indent = 0) io = '' io << ' ' * indent io << 'Root(' io << "\n" if children.any? children.each { |c| io << c.inspect(indent + 1) } io << ' ' * indent if children.any? io << ')' io << "\n" io end |