method
bind
Ruby latest stable (v2_5_5)
-
0 notes -
Class: Exception2MessageMapper
bind(cl)
public
Hide source
# File lib/e2mmap.rb, line 64 def bind(cl) self.module_eval "#{<<-"begin;"}\n#{<<-"end;"}", __FILE__, __LINE__+1 begin; def Raise(err = nil, *rest) Exception2MessageMapper.Raise(self.class, err, *rest) end alias Fail Raise class << self undef included end def self.included(mod) mod.extend Exception2MessageMapper end end; end