Module: Exception2MessageMapper::E2MM (Ruby 2.3.4)

In Files

  • e2mmap.rb

Methods

Class/Module Index [+]

Quicksearch

Exception2MessageMapper::E2MM

Public Class Methods

e2mm_message(klass, exp)
 
               # File e2mmap.rb, line 155
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