Class: Hyrax::CitationsBehaviors::Formatters::BaseFormatter

Inherits:
Object
  • Object
show all
Includes:
CommonBehavior, NameBehavior
Defined in:
app/helpers/hyrax/citations_behaviors/formatters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_contextObject (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