Support for the Ruby 2.4 series has ended. See here for reference.

In Files

  • e2mmap.rb

Methods

Class/Module Index [+]

Quicksearch

Exception2MessageMapper::E2MM

Public Class Methods

e2mm_message(klass, exp) click to toggle source
 
               # File 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