Method: LHS::Record::Chainable::Chain#ignore
- Defined in:
- lib/lhs/concerns/record/chainable.rb
#ignore(*error_classes) ⇒ Object
219 220 221 222 223 224 225 |
# File 'lib/lhs/concerns/record/chainable.rb', line 219 def ignore(*error_classes) chain = push(IgnoredError.new(error_classes.shift)) error_classes.each do |error_class| chain._links.push(IgnoredError.new(error_class)) end chain end |