Class: Coradoc::Element::Inline::CrossReferenceArg

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/element/inline/cross_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#delimiterObject

Returns the value of attribute delimiter.



31
32
33
# File 'lib/coradoc/element/inline/cross_reference.rb', line 31

def delimiter
  @delimiter
end

#keyObject

Returns the value of attribute key.



31
32
33
# File 'lib/coradoc/element/inline/cross_reference.rb', line 31

def key
  @key
end

#valueObject

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_adocObject



39
40
41
# File 'lib/coradoc/element/inline/cross_reference.rb', line 39

def to_adoc
  [@key,@delimiter,@value].join
end