Module: K::Replace::DynamicAccessors
- Included in:
- Statement
- Defined in:
- lib/k/replace/dynamic_accessors.rb
Instance Method Summary collapse
Instance Method Details
#create_accessors(attributes) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/k/replace/dynamic_accessors.rb', line 7 def create_accessors(attributes) @_dynamic_attributes = attributes.with_indifferent_access @_dynamic_attributes.each_with_index do |attribute, index| create_accessor attribute[0].to_s end end |