Class: WorksCited::Configuration
- Inherits:
-
Object
- Object
- WorksCited::Configuration
- Defined in:
- lib/works_cited/configuration.rb
Overview
WorksCited Configuration
Instance Attribute Summary collapse
-
#valid_citation_types ⇒ Object
Returns the value of attribute valid_citation_types.
-
#valid_contributor_roles ⇒ Object
Returns the value of attribute valid_contributor_roles.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_types ⇒ Object
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_roles ⇒ Object
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 |