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