Sha256: fef5d6bc4f391d0463b1b8519abd8110179244244755676b4cf0dba462256aff

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

module Polyfill
  module V2_4
    module Numeric
      module Finite__Q
        module Method
          def finite?
            true
          end if RUBY_VERSION < '2.4.0'

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

            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/finite__q.rb