Class: Incite::Note
Constant Summary collapse
- REQUIRED_ATTRS =
%w(authors title publisher year pages)
Instance Attribute Summary
Attributes inherited from Citation
Instance Method Summary collapse
Methods inherited from Citation
Constructor Details
This class inherits a constructor from Incite::Citation
Instance Method Details
#to_html ⇒ Object
6 7 8 9 10 11 |
# File 'lib/incite/note.rb', line 6 def to_html relevant_attributes = %w(authors title translators editors volume edition city publisher year pages) relevant_attributes.inject("") do |string, attribute| string << format_segment_for(attribute) end end |