Class: NRSER::Types::FalseType

Inherits:
BooleanType show all
Defined in:
lib/nrser/types/booleans.rb

Overview

A type for only ‘false`.

Provides a BooleanType#custom_from_s to load from CLI options and ENV var-like string values.

Constant Summary collapse

STRINGS =
NRSER::FALSY_STRINGS

Instance Attribute Summary

Attributes inherited from Is

#value

Instance Method Summary collapse

Methods inherited from Is

#==, #explain, #test?

Methods inherited from Type

#===, #builtin_inspect, #check, #check!, #explain, #from_data, #from_s, #has_from_data?, #has_from_s?, #has_to_data?, #inspect, #intersection, #name, #not, #respond_to?, #test, #test?, #to_data, #to_s, #union, #xor

Constructor Details

#initialize(**options) ⇒ FalseType

Instantiate a new ‘TrueType`.



84
85
86
# File 'lib/nrser/types/booleans.rb', line 84

def initialize **options
  super false, **options
end