Sha256: 39b9938bdbcbed86e2aa32c583d99adc936185db88f0ca9f46b3abea5a623d45

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

module Polyfill
  module V2_4
    module Numeric
      module Instance
        module InfiniteQ
          module Method
            def infinite?
              nil
            end
          end

          if RUBY_VERSION < '2.4.0'
            refine ::Numeric do
              include Method
            end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyfill-0.3.0 lib/polyfill/v2_4/numeric/instance/infinite_q.rb