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.
10 11 12 |
# File 'app/helpers/hyrax/citations_behaviors/formatters.rb', line 10 def initialize(view_context) @view_context = view_context end |
Instance Attribute Details
#view_context ⇒ Object (readonly)
Returns the value of attribute view_context.
8 9 10 |
# File 'app/helpers/hyrax/citations_behaviors/formatters.rb', line 8 def view_context @view_context end |