Method: Crossbeam::Errors#each

Defined in:
lib/crossbeam/errors.rb

#eachHash, Array

Look through and return a list of all errorr messages

Returns:

  • (Hash, Array)


40
41
42
43
44
# File 'lib/crossbeam/errors.rb', line 40

def each
  each_key do |field|
    self[field].each { |message| yield field, message }
  end
end