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.



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