Sha256: 7246024aa78e0379ec1cd2293d40ac20ba178f293f1d2c3dc23bd896ef885437

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

module Polyfill
  module V2_3
    module Prime
      module ClassMethods
        def prime?(*args)
          value = args.first
          unless value.is_a?(::Integer)
            raise ArgumentError, "Expected an integer, got #{value}"
          end

          super
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
polyfill-1.9.0 lib/polyfill/v2_3/prime.rb
polyfill-1.8.0 lib/polyfill/v2_3/prime.rb
polyfill-1.7.0 lib/polyfill/v2_3/prime.rb
polyfill-1.6.0 lib/polyfill/v2_3/prime.rb
polyfill-1.5.0 lib/polyfill/v2_3/prime.rb
polyfill-1.4.0 lib/polyfill/v2_3/prime.rb
polyfill-1.3.0 lib/polyfill/v2_3/prime.rb
polyfill-1.2.0 lib/polyfill/v2_3/prime.rb