Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/citero-renderers/renderers.rb
Instance Method Summary collapse
-
#to_bibtex ⇒ Object
Allow array of objects to be translated to ris.
-
#to_ris ⇒ Object
Allow array of objects to be translated to ris.
Instance Method Details
#to_bibtex ⇒ Object
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_ris ⇒ Object
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 |