Class: Wood::Types::BooleanType
- Inherits:
-
BuiltinType
- Object
- Struct
- BuiltinType
- Wood::Types::BooleanType
- Defined in:
- lib/wood/types.rb
Instance Attribute Summary
Attributes inherited from BuiltinType
Instance Method Summary collapse
-
#initialize(name, *aliases) ⇒ BooleanType
constructor
A new instance of BooleanType.
- #zero_value ⇒ Object
Methods inherited from BuiltinType
#==, #builtin?, #node_name, #numeric?, #sexp, #type
Methods included from TypeMatching
Constructor Details
#initialize(name, *aliases) ⇒ BooleanType
Returns a new instance of BooleanType.
230 231 232 |
# File 'lib/wood/types.rb', line 230 def initialize(name, *aliases) super(name, false, *aliases) end |
Instance Method Details
#zero_value ⇒ Object
234 235 236 |
# File 'lib/wood/types.rb', line 234 def zero_value @zero_value ||= Wood::Nodes::FalseLiteral.new end |