Class: Traco::AttributeSetup
- Inherits:
-
Object
- Object
- Traco::AttributeSetup
- Defined in:
- lib/traco/attribute_setup.rb
Constant Summary collapse
- INSTANCE_METHODS_MODULE_NAME =
"TracoInstanceMethods"
Instance Method Summary collapse
-
#initialize(klass) ⇒ AttributeSetup
constructor
A new instance of AttributeSetup.
- #set_up(attributes, options) ⇒ Object
Constructor Details
#initialize(klass) ⇒ AttributeSetup
Returns a new instance of AttributeSetup.
5 6 7 |
# File 'lib/traco/attribute_setup.rb', line 5 def initialize(klass) @klass = klass end |
Instance Method Details
#set_up(attributes, options) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/traco/attribute_setup.rb', line 9 def set_up(attributes, ) ensure_class_methods ensure_attribute_list ensure_instance_methods_module add_attributes attributes, end |