Class: Mal::MaybeT

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

#initialize(matchable) ⇒ MaybeT

Returns a new instance of MaybeT.



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

def initialize(matchable); super(NilClass, matchable); end

Instance Method Details

#inspectObject



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

def inspect; 'Maybe(%s)' % @types[1].inspect; end