Class: NaturalBornSlugger::Configuration
- Inherits:
-
Object
- Object
- NaturalBornSlugger::Configuration
- Defined in:
- lib/natural_born_slugger/configuration.rb
Instance Attribute Summary collapse
-
#hashified_length ⇒ Object
Returns the value of attribute hashified_length.
-
#ignore_attribute_setters ⇒ Object
Returns the value of attribute ignore_attribute_setters.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/natural_born_slugger/configuration.rb', line 8 def initialize @ignore_attribute_setters = true @hashified_length = 7 @logger = Logger.new(STDERR) end |
Instance Attribute Details
#hashified_length ⇒ Object
Returns the value of attribute hashified_length.
6 7 8 |
# File 'lib/natural_born_slugger/configuration.rb', line 6 def hashified_length @hashified_length end |
#ignore_attribute_setters ⇒ Object
Returns the value of attribute ignore_attribute_setters.
6 7 8 |
# File 'lib/natural_born_slugger/configuration.rb', line 6 def ignore_attribute_setters @ignore_attribute_setters end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/natural_born_slugger/configuration.rb', line 6 def logger @logger end |