Method: Bibtex::Bibliography#map
- Defined in:
- lib/bibtex/bibliography.rb
#map ⇒ Object
Transform the entries in some way and return a new bibliography
26 27 28 29 30 31 32 |
# File 'lib/bibtex/bibliography.rb', line 26 def map r = Bibliography.new @entries.each do |k, e| r << yield(e) end return r end |