Class: WorksCited::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/works_cited/configuration.rb

Overview

WorksCited Configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



21
22
23
24
# File 'lib/works_cited/configuration.rb', line 21

def initialize
  self.valid_citation_types = %w[book periodical electronic interview email tweet]
  self.valid_contributor_roles = %w[author editor compiler translator receiver]
end

Instance Attribute Details

#valid_citation_typesObject

Returns the value of attribute valid_citation_types.



16
17
18
# File 'lib/works_cited/configuration.rb', line 16

def valid_citation_types
  @valid_citation_types
end

#valid_contributor_rolesObject

Returns the value of attribute valid_contributor_roles.



16
17
18
# File 'lib/works_cited/configuration.rb', line 16

def valid_contributor_roles
  @valid_contributor_roles
end