Project

General

Profile

« Previous | Next » 

Revision 2d884179

Added by knu (Akinori MUSHA) over 7 years ago

IPAddr#== and IPAddr#<=> no longer raise an exception if coercion fails

  • lib/ipaddr.rb (IPAddr#==): If coercion fails, return false
    instead of passing through the exception. [ruby-core:77451]
    [Bug #12799]

  • lib/ipaddr.rb (IPAddr#<=>): If coercion fails, return nil
    instead of passing through the exception. [ruby-core:77451]
    [Bug #12799]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e