Class: NRSER::Types::TrueType
- Inherits:
-
BooleanType
- Object
- Type
- Is
- BooleanType
- NRSER::Types::TrueType
- Defined in:
- lib/nrser/types/booleans.rb
Overview
A type for only the ‘true`.
Provides a BooleanType#custom_from_s to load from CLI options and ENV var-like string values.
Constant Summary collapse
- STRINGS =
NRSER::TRUTHY_STRINGS
Instance Attribute Summary
Attributes inherited from Is
Instance Method Summary collapse
-
#initialize(**options) ⇒ TrueType
constructor
Instantiate a new ‘TrueType`.
Methods inherited from Is
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) ⇒ TrueType
Instantiate a new ‘TrueType`.
66 67 68 |
# File 'lib/nrser/types/booleans.rb', line 66 def initialize ** super true, ** end |