Module: SmoothOperator::AttributeAssignment::ClassMethods
- Defined in:
- lib/smooth_operator/attribute_assignment.rb
Instance Attribute Summary collapse
-
#turn_unknown_hash_to_open_struct ⇒ Object
Returns the value of attribute turn_unknown_hash_to_open_struct.
Instance Method Summary collapse
- #attributes_black_list ⇒ Object
- #attributes_black_list_add(*getters) ⇒ Object
- #attributes_white_list ⇒ Object
- #attributes_white_list_add(*getters) ⇒ Object
Instance Attribute Details
#turn_unknown_hash_to_open_struct ⇒ Object
Returns the value of attribute turn_unknown_hash_to_open_struct.
13 14 15 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 13 def turn_unknown_hash_to_open_struct @turn_unknown_hash_to_open_struct end |
Instance Method Details
#attributes_black_list ⇒ Object
19 20 21 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 19 def attributes_black_list Helpers.get_instance_variable(self, :attributes_black_list, Set.new) end |
#attributes_black_list_add(*getters) ⇒ Object
27 28 29 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 27 def attributes_black_list_add(*getters) attributes_black_list.merge getters.map(&:to_s) end |
#attributes_white_list ⇒ Object
15 16 17 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 15 def attributes_white_list Helpers.get_instance_variable(self, :attributes_white_list, Set.new) end |
#attributes_white_list_add(*getters) ⇒ Object
23 24 25 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 23 def attributes_white_list_add(*getters) attributes_white_list.merge getters.map(&:to_s) end |