module Exception2MessageMapper::E2MM

Public Class Methods

e2mm_message(klass, exp) click to toggle source
# File lib/e2mmap.rb, line 159
def E2MM.e2mm_message(klass, exp)
  for c in klass.ancestors
    if mes = @MessageMap[[c,exp]]
      m = klass.instance_eval('"' + mes + '"')
      return m
    end
  end
  nil
end