[ruby-cvs:71777] k0kubun:r64685 (trunk): bare_instructions.rb: use Hash#fetch to read attr

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Tue Sep 11 23:10:00 JST 2018


k0kubun	2018-09-11 23:10:00 +0900 (Tue, 11 Sep 2018)

  New Revision: 64685

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64685

  Log:
    bare_instructions.rb: use Hash#fetch to read attr
    
    to raise descriptive KeyError instead of NoMethodError in case these
    attrs are accidentally removed.

  Modified files:
    trunk/tool/ruby_vm/models/bare_instructions.rb


More information about the ruby-cvs mailing list