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