Class: Coradoc::Element::Inline::Highlight
- Defined in:
- lib/coradoc/element/inline/highlight.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#unconstrained ⇒ Object
Returns the value of attribute unconstrained.
Instance Method Summary collapse
-
#initialize(content, unconstrained: true) ⇒ Highlight
constructor
A new instance of Highlight.
- #to_adoc ⇒ Object
Methods inherited from Base
#children_accessors, children_accessors, declare_children, #simplify_block_content, visit, #visit
Constructor Details
#initialize(content, unconstrained: true) ⇒ Highlight
Returns a new instance of Highlight.
9 10 11 12 |
# File 'lib/coradoc/element/inline/highlight.rb', line 9 def initialize(content, unconstrained: true) @content = content @unconstrained = unconstrained end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
5 6 7 |
# File 'lib/coradoc/element/inline/highlight.rb', line 5 def content @content end |
#unconstrained ⇒ Object
Returns the value of attribute unconstrained.
5 6 7 |
# File 'lib/coradoc/element/inline/highlight.rb', line 5 def unconstrained @unconstrained end |