Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/citero-renderers/renderers.rb

Instance Method Summary collapse

Instance Method Details

#to_bibtexObject

Allow array of objects to be translated to ris



9
10
11
# File 'lib/citero-renderers/renderers.rb', line 9

def to_bibtex
  self.collect { |r| r.to_bibtex if r.respond_to? :to_bibtex }.join("\n\n")
end

#to_risObject

Allow array of objects to be translated to ris



4
5
6
# File 'lib/citero-renderers/renderers.rb', line 4

def to_ris
  self.collect { |r| r.to_ris if r.respond_to? :to_ris}.join("\n\n")
end