Class: NaturalBornSlugger::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_lengthObject

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_settersObject

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

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/natural_born_slugger/configuration.rb', line 6

def logger
  @logger
end