Module: Exception2MessageMapper::E2MM (Ruby 2.3.2)
Description: Module : Exception2MessageMapper::E2MM - Ruby 2.3.2

- Home
- Core 2.3.2
- Std-lib 2.3.2
- Downloads

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

### Home Classes Methods

### In Files

- e2mmap.rb

### Methods

- ::e2mm_message

### Class/Module Index

Quicksearch

- Exception2MessageMapper
- Exception2MessageMapper::E2MM

No matching classes.

# Exception2MessageMapper::E2MM

### Public Class Methods

e2mm_message(klass, exp) click to toggle source

                   # File e2mmap.rb, line 154
    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