Module: BibTeX::Replaceable
Overview
The Replaceable module provides methods that expose a Value attribute and the ability to join or replace the contained BibTeX symbols.
Instance Attribute Summary collapse
-
#value ⇒ Object
(also: #v)
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object Also known as: v
Returns the value of attribute value.
27 28 29 |
# File 'lib/bibtex/replaceable.rb', line 27 def value @value end |
Instance Method Details
#<<(value) ⇒ Object
43 44 45 46 |
# File 'lib/bibtex/replaceable.rb', line 43 def <<(value) @value << value self end |
#join ⇒ Object
38 39 40 41 |
# File 'lib/bibtex/replaceable.rb', line 38 def join @value.join self end |
#replace(*arguments) ⇒ Object
33 34 35 36 |
# File 'lib/bibtex/replaceable.rb', line 33 def replace(*arguments) @value.replace(*arguments) self end |