Sha256: 445fdf3d8b2fbaa360662cfc1ae1522c85c138c0607eb0db9cf1d24f206eddda

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

require "singleton"

module Strict
  module Validators
    class Boolean
      include Singleton

      def ===(value)
        value.equal?(true) || value.equal?(false)
      end

      def inspect
        "Boolean()"
      end
      alias to_s inspect
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
strict-1.5.0 lib/strict/validators/boolean.rb
strict-1.4.0 lib/strict/validators/boolean.rb
strict-1.3.1 lib/strict/validators/boolean.rb
strict-1.3.0 lib/strict/validators/boolean.rb
strict-1.2.0 lib/strict/validators/boolean.rb
strict-1.1.0 lib/strict/validators/boolean.rb
strict-1.0.0 lib/strict/validators/boolean.rb