mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/e2mmap.rb: removed commented-out code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3118c4c46e
commit
4d9de3db0a
2 changed files with 4 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Aug 21 14:45:41 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/e2mmap.rb: removed commented-out code.
|
||||
|
||||
Thu Aug 21 13:23:34 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/rinda/ring.rb: split executable code into sample directory.
|
||||
|
|
|
@ -142,8 +142,6 @@ module Exception2MessageMapper
|
|||
def E2MM.Raise(klass = E2MM, err = nil, *rest)
|
||||
if form = e2mm_message(klass, err)
|
||||
b = $@.nil? ? caller(1) : $@
|
||||
#p $@
|
||||
#p __FILE__
|
||||
b.shift if b[0] =~ /^#{Regexp.quote(__FILE__)}:/
|
||||
raise err, sprintf(form, *rest), b
|
||||
else
|
||||
|
@ -157,7 +155,6 @@ module Exception2MessageMapper
|
|||
def E2MM.e2mm_message(klass, exp)
|
||||
for c in klass.ancestors
|
||||
if mes = @MessageMap[[c,exp]]
|
||||
#p mes
|
||||
m = klass.instance_eval('"' + mes + '"')
|
||||
return m
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue