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.



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

#joinObject



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