Class: Attribeauty::Configuration
- Inherits:
-
Object
- Object
- Attribeauty::Configuration
- Defined in:
- lib/attribeauty/configuration.rb
Overview
Attribeauty.configure do |config|
config.types[:koala] = MyClass::Koala
end
Instance Attribute Summary collapse
-
#types ⇒ Object
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#types ⇒ Object
Returns the value of attribute types.
8 9 10 |
# File 'lib/attribeauty/configuration.rb', line 8 def types @types end |