Class: Mal::MaybeT
Instance Attribute Summary
Attributes inherited from EitherT
Instance Method Summary collapse
-
#initialize(matchable) ⇒ MaybeT
constructor
A new instance of MaybeT.
- #inspect ⇒ Object
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
#inspect ⇒ Object
265 |
# File 'lib/mal.rb', line 265 def inspect; 'Maybe(%s)' % @types[1].inspect; end |