[ruby-cvs:64422] nobu:r57256 (trunk): forwardable.rb: use defined?

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jan 3 18:35:26 JST 2017


nobu	2017-01-03 18:35:26 +0900 (Tue, 03 Jan 2017)

  New Revision: 57256

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

  Log:
    forwardable.rb: use defined?
    
    * lib/forwardable.rb (_delegator_method): use defined? operator
      instead of binding and calling unbound Kernel#respond_to?.  a
      remedy for an performance bottleneck.

  Modified files:
    trunk/lib/forwardable.rb


More information about the ruby-cvs mailing list