Sha256: 078136dd448b440046d6c59069f9c8c809254ffdb4eef6a24195efa7f29f8334

Contents?: true

Size: 324 Bytes

Versions: 11

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

module Kind
  module Boolean
    extend self, ::Kind::Object

    def kind; [TrueClass, FalseClass]; end

    def name; 'Boolean'; end

    def ===(value)
      ::TrueClass === value || ::FalseClass === value
    end
  end

  def self.Boolean?(*values)
    KIND.of?(Boolean, values)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kind-5.10.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.9.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.8.1 lib/kind/objects/modules/custom/boolean.rb
kind-5.8.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.7.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.6.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.5.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.4.1 lib/kind/objects/modules/custom/boolean.rb
kind-5.4.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.3.0 lib/kind/objects/modules/custom/boolean.rb
kind-5.2.0 lib/kind/objects/modules/custom/boolean.rb