Class: Attribeauty::Configuration

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

Overview

Attribeauty.configure do |config|

config.types[:koala] = MyClass::Koala

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
# File 'lib/attribeauty/configuration.rb', line 10

def initialize
  @types = TypeCaster::BASE_TYPES.dup
end

Instance Attribute Details

#typesObject

Returns the value of attribute types.



8
9
10
# File 'lib/attribeauty/configuration.rb', line 8

def types
  @types
end