Class: Polites::Span::Annotation
- Inherits:
-
Polites::Span
- Object
- Node
- Polites::Span
- Polites::Span::Annotation
- Defined in:
- lib/polites/span/annotation.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Node
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
-
#initialize(children, text) ⇒ Annotation
constructor
A new instance of Annotation.
Methods inherited from Polites::Span
Constructor Details
#initialize(children, text) ⇒ Annotation
Returns a new instance of Annotation.
9 10 11 12 |
# File 'lib/polites/span/annotation.rb', line 9 def initialize(children, text) super(children) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/polites/span/annotation.rb', line 7 def text @text end |
Instance Method Details
#eql?(other) ⇒ Boolean
14 15 16 |
# File 'lib/polites/span/annotation.rb', line 14 def eql?(other) super && text == other.text end |