Method: OFlow::ValidateError#initialize

Defined in:
lib/oflow/errors.rb

#initialize(errors) ⇒ ValidateError

Returns a new instance of ValidateError.



58
59
60
61
62
63
# File 'lib/oflow/errors.rb', line 58

def initialize(errors)
  @problems = errors
  ma = ["#{errors.size} validation errors."]
  errors.each { |e| ma << e.to_s }
  super(ma.join("\n  "))
end