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.
233 234 235 236 |
# File 'lib/facwparser/element.rb', line 233 def initialize(source, text) super(source) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
232 233 234 |
# File 'lib/facwparser/element.rb', line 232 def text @text end |
Instance Method Details
#==(other) ⇒ Object
237 238 239 |
# File 'lib/facwparser/element.rb', line 237 def ==(other) super(other) && self.text == other.text end |