Class: Mal::BoolT

Inherits:
EitherT show all
Defined in:
lib/mal.rb

Instance Attribute Summary

Attributes inherited from EitherT

#types

Instance Method Summary collapse

Methods inherited from EitherT

#===

Methods inherited from OnlyT

#&, #===

Constructor Details

#initializeBoolT

Returns a new instance of BoolT.



269
# File 'lib/mal.rb', line 269

def initialize; super(TrueClass, FalseClass); end

Instance Method Details

#inspectObject



270
# File 'lib/mal.rb', line 270

def inspect; 'Bool()'; end

#|(another) ⇒ Object



271
# File 'lib/mal.rb', line 271

def |(another); EitherT.new(self, another); end