Module: SmoothOperator::AttributeAssignment::ClassMethods
- Defined in:
- lib/smooth_operator/attribute_assignment.rb
Instance Method Summary collapse
- #attributes_black_list ⇒ Object
- #attributes_black_list_add(*getters) ⇒ Object
- #attributes_white_list ⇒ Object
- #attributes_white_list_add(*getters) ⇒ Object
- #unknown_hash_class ⇒ Object
Instance Method Details
#attributes_black_list ⇒ Object
78 79 80 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 78 def attributes_black_list Helpers.get_instance_variable(self, :attributes_black_list, Set.new) end |
#attributes_black_list_add(*getters) ⇒ Object
86 87 88 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 86 def attributes_black_list_add(*getters) attributes_black_list.merge getters.map(&:to_s) end |
#attributes_white_list ⇒ Object
74 75 76 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 74 def attributes_white_list Helpers.get_instance_variable(self, :attributes_white_list, Set.new) end |
#attributes_white_list_add(*getters) ⇒ Object
82 83 84 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 82 def attributes_white_list_add(*getters) attributes_white_list.merge getters.map(&:to_s) end |
#unknown_hash_class ⇒ Object
70 71 72 |
# File 'lib/smooth_operator/attribute_assignment.rb', line 70 def unknown_hash_class get_option :unknown_hash_class, ::OpenStruct end |