Sha256: bec64af1397730741c84939d00aa6345cca068031183cf7793d8356387b46f0c

Contents?: true

Size: 260 Bytes

Versions: 8

Compression:

Stored size: 260 Bytes

Contents

module Polyfill
  module V2_4
    module IPAddr
      def ==(*)
        super
      rescue ::IPAddr::InvalidAddressError
        false
      end

      def <=>(*)
        super
      rescue ::IPAddr::InvalidAddressError
        nil
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
polyfill-1.9.0 lib/polyfill/v2_4/i_p_addr.rb
polyfill-1.8.0 lib/polyfill/v2_4/i_p_addr.rb
polyfill-1.7.0 lib/polyfill/v2_4/i_p_addr.rb
polyfill-1.6.0 lib/polyfill/v2_4/i_p_addr.rb
polyfill-1.5.0 lib/polyfill/v2_4/i_p_addr.rb
polyfill-1.4.0 lib/polyfill/v2_4/i_p_addr.rb
polyfill-1.3.0 lib/polyfill/v2_4/i_p_addr.rb
polyfill-1.2.0 lib/polyfill/v2_4/i_p_addr.rb