Class: Subconv::ContainerNode
- Inherits:
-
CaptionNode
- Object
- CaptionNode
- Subconv::ContainerNode
- Defined in:
- lib/subconv/caption.rb
Overview
Node that contains other nodes
Direct Known Subclasses
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(children = []) ⇒ ContainerNode
constructor
A new instance of ContainerNode.
Constructor Details
#initialize(children = []) ⇒ ContainerNode
Returns a new instance of ContainerNode.
53 54 55 |
# File 'lib/subconv/caption.rb', line 53 def initialize(children = []) self.children = children end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
61 62 63 |
# File 'lib/subconv/caption.rb', line 61 def children @children end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 |
# File 'lib/subconv/caption.rb', line 57 def ==(other) self.class == other.class && @children == other.children end |