Class: Polites::Span::Footnote
- Inherits:
-
Polites::Span
- Object
- Node
- Polites::Span
- Polites::Span::Footnote
- Defined in:
- lib/polites/span/footnote.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) ⇒ Footnote
constructor
A new instance of Footnote.
Methods inherited from Polites::Span
Constructor Details
#initialize(children, text) ⇒ Footnote
Returns a new instance of Footnote.
9 10 11 12 |
# File 'lib/polites/span/footnote.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/footnote.rb', line 7 def text @text end |
Instance Method Details
#eql?(other) ⇒ Boolean
14 15 16 |
# File 'lib/polites/span/footnote.rb', line 14 def eql?(other) super && text == other.text end |