Class: DMark::Nodes::Node
- Inherits:
-
Object
- Object
- DMark::Nodes::Node
- Defined in:
- lib/dmark/nodes.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
Instance Method Summary collapse
-
#initialize ⇒ Node
constructor
A new instance of Node.
- #inspect(_indent = 0) ⇒ Object
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
6 7 8 |
# File 'lib/dmark/nodes.rb', line 6 def initialize @children = [] end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
4 5 6 |
# File 'lib/dmark/nodes.rb', line 4 def children @children end |
Instance Method Details
#inspect(_indent = 0) ⇒ Object
10 11 12 |
# File 'lib/dmark/nodes.rb', line 10 def inspect(_indent = 0) 'Node()' end |