Sha256: bcdc236ef8777f39bb322508077ccba3d4dee88da0cd54e6687c0fc73b53d8d4

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

module Polyfill
  module V2_4
    module Numeric
      module Instance
        module FiniteQ
          module Method
            def finite?
              true
            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/finite_q.rb