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.
28 29 30 |
# File 'lib/bibtex/replaceable.rb', line 28 def value @value end |
Instance Method Details
#<<(value) ⇒ Object
44 45 46 47 |
# File 'lib/bibtex/replaceable.rb', line 44 def <<(value) @value << value self end |
#join ⇒ Object
39 40 41 42 |
# File 'lib/bibtex/replaceable.rb', line 39 def join @value.join self end |
#replace(*arguments) ⇒ Object
34 35 36 37 |
# File 'lib/bibtex/replaceable.rb', line 34 def replace(*arguments) @value.replace(*arguments) self end |