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

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jan 3 17:40:51 JST 2017


nobu	2017-01-03 17:40:51 +0900 (Tue, 03 Jan 2017)

  New Revision: 57255

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

  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