Class: Subconv::ContainerNode

Inherits:
CaptionNode show all
Defined in:
lib/subconv/caption.rb

Overview

Node that contains other nodes

Direct Known Subclasses

ColorNode, FlashNode, ItalicsNode, RootNode, UnderlineNode

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#childrenObject

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