Sha256: 1bfb0acb73951c7e298c19cab04222c89bde449f60e19f3c9d985c350692e322

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

require 'ipaddr'

module Polyfill
  module V2_4
    module IPAddr
      module Instance
        module Equalequal
          module Method
            def ==(*)
              super
            rescue
              false
            end
          end

          refine ::IPAddr do
            include Method
          end

          def self.included(base)
            base.include Method
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polyfill-0.6.0 lib/polyfill/v2_4/i_p_addr/instance/equalequal.rb
polyfill-0.5.0 lib/polyfill/v2_4/i_p_addr/instance/equalequal.rb
polyfill-0.4.0 lib/polyfill/v2_4/i_p_addr/instance/equalequal.rb