Class: Subconv::TextNode

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

Overview

Node that contains text

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject

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