ruby-changes:44042
From: nobu <ko1@a...>
Date: Fri, 9 Sep 2016 09:49:11 +0900 (JST)
Subject: [ruby-changes:44042] nobu:r56115 (trunk): e2mmap.rb: remove legacy code
nobu 2016-09-09 09:49:05 +0900 (Fri, 09 Sep 2016) New Revision: 56115 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56115 Log: e2mmap.rb: remove legacy code * lib/e2mmap.rb (Exception2MessageMapper::E2MM.def_exception): remove legacy code. Symbol is no longer a number already. Modified files: trunk/lib/e2mmap.rb Index: lib/e2mmap.rb =================================================================== --- lib/e2mmap.rb (revision 56114) +++ lib/e2mmap.rb (revision 56115) @@ -128,7 +128,6 @@ module Exception2MessageMapper https://github.com/ruby/ruby/blob/trunk/lib/e2mmap.rb#L128 # define exception named ``c'' with message m. # def E2MM.def_exception(k, n, m, s = StandardError) - n = n.id2name if n.kind_of?(Fixnum) e = Class.new(s) E2MM.instance_eval{@MessageMap[[k, e]] = m} k.const_set(n, e) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/