Module: WellFormed::AttributeAssignment::ClassMethods
- Defined in:
- lib/well_formed/attribute_assignment.rb
Instance Method Summary collapse
Instance Method Details
#unmatched_attributes(policy) ⇒ Object
10 11 12 13 14 |
# File 'lib/well_formed/attribute_assignment.rb', line 10 def unmatched_attributes(policy) raise ArgumentError, "policy must be :ignore, :warn, or :raise" unless %i[ignore warn raise].include?(policy) @unmatched_attributes_policy = policy end |
#unmatched_attributes_policy ⇒ Object
16 17 18 |
# File 'lib/well_formed/attribute_assignment.rb', line 16 def unmatched_attributes_policy @unmatched_attributes_policy || :ignore end |