Method: LHS::Record::Chainable::Chain#ignore
- Defined in:
- lib/lhs/concerns/record/chainable.rb
#ignore(*error_classes) ⇒ Object
227 228 229 230 231 232 233 |
# File 'lib/lhs/concerns/record/chainable.rb', line 227 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 |