Class: Coradoc::Element::Inline::CrossReferenceArg
- Defined in:
- lib/coradoc/element/inline/cross_reference.rb
Instance Attribute Summary collapse
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, delimiter, value) ⇒ CrossReferenceArg
constructor
A new instance of CrossReferenceArg.
- #to_adoc ⇒ Object
Methods inherited from Base
#children_accessors, children_accessors, declare_children, #simplify_block_content, visit, #visit
Constructor Details
#initialize(key, delimiter, value) ⇒ CrossReferenceArg
Returns a new instance of CrossReferenceArg.
33 34 35 36 37 |
# File 'lib/coradoc/element/inline/cross_reference.rb', line 33 def initialize(key, delimiter, value) @key = key @delimiter = delimiter @value = value end |
Instance Attribute Details
#delimiter ⇒ Object
Returns the value of attribute delimiter.
31 32 33 |
# File 'lib/coradoc/element/inline/cross_reference.rb', line 31 def delimiter @delimiter end |
#key ⇒ Object
Returns the value of attribute key.
31 32 33 |
# File 'lib/coradoc/element/inline/cross_reference.rb', line 31 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
31 32 33 |
# File 'lib/coradoc/element/inline/cross_reference.rb', line 31 def value @value end |
Instance Method Details
#to_adoc ⇒ Object
39 40 41 |
# File 'lib/coradoc/element/inline/cross_reference.rb', line 39 def to_adoc [@key,@delimiter,@value].join end |