summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/e2mmap.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/e2mmap.rb b/lib/e2mmap.rb
index bbff4f8..e9cbd6a 100644
--- a/lib/e2mmap.rb
+++ b/lib/e2mmap.rb
@@ -62,16 +62,20 @@ module Exception2MessageMapper
end
def bind(cl)
- self.module_eval %[
+ 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
# Fail(err, *rest)