Sha256: 6bebeb5604f457c44e0742dc2118f1cad19800a228e15efc9f0203991bb8e9bb

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

module Polyfill
  module V2_4
    module Numeric
      module Infinite__Q
        module Method
          def infinite?
            nil
          end if RUBY_VERSION < '2.4.0'

          def respond_to?(method, *)
            return true if method.to_sym == :infinite?

            super
          end if RUBY_VERSION < '2.4.0'
        end

        refine ::Numeric do
          include Method
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyfill-0.1.0 lib/polyfill/v2_4/numeric/infinite__q.rb