Class: Coradoc::Element::Inline::Small
- Defined in:
- lib/coradoc/element/inline/small.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, _options = {}) ⇒ Small
constructor
A new instance of Small.
- #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 = {}) ⇒ Small
Returns a new instance of Small.
9 10 11 |
# File 'lib/coradoc/element/inline/small.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/small.rb', line 5 def text @text end |
Instance Method Details
#to_adoc ⇒ Object
13 14 15 |
# File 'lib/coradoc/element/inline/small.rb', line 13 def to_adoc "[.small]##{@text}#" end |