Class: Typisch::Type::Boolean
- Inherits:
-
Constructor::Singleton
- Object
- Typisch::Type
- Constructor
- Constructor::Singleton
- Typisch::Type::Boolean
- Defined in:
- lib/typisch/boolean.rb
Constant Summary
Constants inherited from Constructor
Constructor::CONSTRUCTOR_TYPE_SUBCLASSES
Instance Attribute Summary
Attributes inherited from Typisch::Type
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Constructor::Singleton
check_subtype, #subexpression_types, #tag, #to_s, top_type
Methods inherited from Constructor
#alternative_types, check_subtype, #check_type, inherited, #tag, top_type, #type_lattice
Methods inherited from Typisch::Type
#<, #<=, #<=>, #==, #===, #>, #>=, #alternative_types, #annotations, #annotations=, #canonicalize!, #excluding_null, #inspect, #recursive?, #subexpression_types, subtype?, #target, #to_s, #to_string
Class Method Details
.tag ⇒ Object
3 4 5 |
# File 'lib/typisch/boolean.rb', line 3 def self.tag "Boolean" end |
Instance Method Details
#shallow_check_type(instance) ⇒ Object
7 8 9 |
# File 'lib/typisch/boolean.rb', line 7 def shallow_check_type(instance) instance == true || instance == false end |