Class: RBI::Type::Boolean
- Inherits:
-
Type
- Object
- Type
- RBI::Type::Boolean
- Defined in:
- lib/rbi/type.rb
Overview
T::Boolean.
Instance Method Summary collapse
-
#==(other) ⇒ Object
: (BasicObject other) -> bool.
-
#normalize ⇒ Object
: -> Type.
-
#simplify ⇒ Object
: -> Type.
-
#to_rbi ⇒ Object
: -> String.
Instance Method Details
#==(other) ⇒ Object
: (BasicObject other) -> bool
108 109 110 |
# File 'lib/rbi/type.rb', line 108 def ==(other) Boolean === other end |
#normalize ⇒ Object
: -> Type
120 121 122 |
# File 'lib/rbi/type.rb', line 120 def normalize Type::Any.new([Type.simple("TrueClass"), Type.simple("FalseClass")]) end |
#simplify ⇒ Object
: -> Type
126 127 128 |
# File 'lib/rbi/type.rb', line 126 def simplify self end |
#to_rbi ⇒ Object
: -> String
114 115 116 |
# File 'lib/rbi/type.rb', line 114 def to_rbi "::T::Boolean" end |