Class: Hyrax::CitationsBehaviors::Formatters::BaseFormatter
- Inherits:
-
Object
- Object
- Hyrax::CitationsBehaviors::Formatters::BaseFormatter
- Includes:
- CommonBehavior, NameBehavior
- Defined in:
- app/helpers/hyrax/citations_behaviors/formatters.rb
Direct Known Subclasses
ApaFormatter, ChicagoFormatter, MlaFormatter, OpenUrlFormatter
Instance Attribute Summary collapse
-
#view_context ⇒ Object
readonly
Returns the value of attribute view_context.
Instance Method Summary collapse
-
#initialize(view_context) ⇒ BaseFormatter
constructor
A new instance of BaseFormatter.
Methods included from NameBehavior
#abbreviate_name, #all_authors, #author_list, #given_name_first, #surname_first
Methods included from CommonBehavior
#clean_end_punctuation, #persistent_url
Constructor Details
#initialize(view_context) ⇒ BaseFormatter
Returns a new instance of BaseFormatter.
11 12 13 |
# File 'app/helpers/hyrax/citations_behaviors/formatters.rb', line 11 def initialize(view_context) @view_context = view_context end |
Instance Attribute Details
#view_context ⇒ Object (readonly)
Returns the value of attribute view_context.
9 10 11 |
# File 'app/helpers/hyrax/citations_behaviors/formatters.rb', line 9 def view_context @view_context end |