Class: Facwparser::Element::InlineElementBase
- Inherits:
-
ElementBase
- Object
- ElementBase
- Facwparser::Element::InlineElementBase
- Defined in:
- lib/facwparser/element.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from ElementBase
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(source, text) ⇒ InlineElementBase
constructor
A new instance of InlineElementBase.
Methods inherited from ElementBase
Constructor Details
#initialize(source, text) ⇒ InlineElementBase
Returns a new instance of InlineElementBase.
226 227 228 229 |
# File 'lib/facwparser/element.rb', line 226 def initialize(source, text) super(source) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
225 226 227 |
# File 'lib/facwparser/element.rb', line 225 def text @text end |
Instance Method Details
#==(other) ⇒ Object
230 231 232 |
# File 'lib/facwparser/element.rb', line 230 def ==(other) super(other) && self.text == other.text end |