Class: Subconv::TextNode
- Inherits:
-
CaptionNode
- Object
- CaptionNode
- Subconv::TextNode
- Defined in:
- lib/subconv/caption.rb
Overview
Node that contains text
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(text) ⇒ TextNode
constructor
A new instance of TextNode.
Constructor Details
#initialize(text) ⇒ TextNode
Returns a new instance of TextNode.
40 41 42 |
# File 'lib/subconv/caption.rb', line 40 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
48 49 50 |
# File 'lib/subconv/caption.rb', line 48 def text @text end |
Instance Method Details
#==(other) ⇒ Object
44 45 46 |
# File 'lib/subconv/caption.rb', line 44 def ==(other) self.class == other.class && @text == other.text end |