Class: Coradoc::Element::Inline::Underline
- Defined in:
- lib/coradoc/element/inline/underline.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, _options = {}) ⇒ Underline
constructor
A new instance of Underline.
- #to_adoc ⇒ Object
Methods inherited from Base
access_children, #children_accessors, children_accessors, declare_children, #simplify_block_content, visit, #visit
Constructor Details
#initialize(text, _options = {}) ⇒ Underline
Returns a new instance of Underline.
9 10 11 |
# File 'lib/coradoc/element/inline/underline.rb', line 9 def initialize(text, = {}) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/coradoc/element/inline/underline.rb', line 5 def text @text end |
Instance Method Details
#to_adoc ⇒ Object
13 14 15 |
# File 'lib/coradoc/element/inline/underline.rb', line 13 def to_adoc "[.underline]##{@text}#" end |