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