Class: Coradoc::Element::Inline::Monospace
- Inherits:
-
Object
- Object
- Coradoc::Element::Inline::Monospace
- Defined in:
- lib/coradoc/element/inline/monospace.rb
Instance Attribute Summary collapse
-
#constrained ⇒ Object
Returns the value of attribute constrained.
-
#content ⇒ Object
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content, unconstrained = true) ⇒ Monospace
constructor
A new instance of Monospace.
- #to_adoc ⇒ Object
Constructor Details
#initialize(content, unconstrained = true) ⇒ Monospace
Returns a new instance of Monospace.
6 7 8 9 |
# File 'lib/coradoc/element/inline/monospace.rb', line 6 def initialize(content, unconstrained = true) @content = content @unconstrained = unconstrained end |
Instance Attribute Details
#constrained ⇒ Object
Returns the value of attribute constrained.
5 6 7 |
# File 'lib/coradoc/element/inline/monospace.rb', line 5 def constrained @constrained end |
#content ⇒ Object
Returns the value of attribute content.
5 6 7 |
# File 'lib/coradoc/element/inline/monospace.rb', line 5 def content @content end |