Sha256: bbd1f4f125d748e9d00758ec1cd892342f4fab82722c78f55ea35b20b9669a37

Contents?: true

Size: 209 Bytes

Versions: 13

Compression:

Stored size: 209 Bytes

Contents

# frozen_string_literal: true
module Hako
  module Schema
    class Integer
      def valid?(object)
        object.is_a?(::Integer)
      end

      def same?(x, y)
        x == y
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hako-1.1.0 lib/hako/schema/integer.rb
hako-1.0.1 lib/hako/schema/integer.rb
hako-1.0.0 lib/hako/schema/integer.rb
hako-0.27.0 lib/hako/schema/integer.rb
hako-0.26.0 lib/hako/schema/integer.rb
hako-0.25.2 lib/hako/schema/integer.rb
hako-0.25.1 lib/hako/schema/integer.rb
hako-0.25.0 lib/hako/schema/integer.rb
hako-0.24.0 lib/hako/schema/integer.rb
hako-0.23.0 lib/hako/schema/integer.rb
hako-0.22.0 lib/hako/schema/integer.rb
hako-0.21.1 lib/hako/schema/integer.rb
hako-0.21.0 lib/hako/schema/integer.rb