Module: BibTeX::Replaceable

Extended by:
Forwardable
Included in:
Preamble, String
Defined in:
lib/bibtex/replaceable.rb

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

Instance Method Summary collapse

Instance Attribute Details

#valueObject 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

#joinObject



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