Module: SmoothOperator::AttributeAssignment::ClassMethods

Defined in:
lib/smooth_operator/attribute_assignment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#turn_unknown_hash_to_open_structObject

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_listObject



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_listObject



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