Sha256: a15d9c88168161d2cbe2ae50ca62c00b75f133774ddede1a26f9875f61ee8044

Contents?: true

Size: 217 Bytes

Versions: 3

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true

# @api public
# @since 0.1.0
SmartCore::Types::Value.define_type(:Boolean) do |type|
  type.define_checker do |value|
    value.is_a?(::TrueClass) || value.is_a?(::FalseClass)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smart_types-0.1.0.alpha2 lib/smart_core/types/value/boolean.rb
smart_types-0.1.0.alpha lib/smart_core/types/value/boolean.rb
smart_types-0.0.0 lib/smart_core/types/value/boolean.rb