Module: Funkr::Categories::Alternative
- Defined in:
- lib/funkr/categories/alternative.rb
Overview
Functors for which alternative (OR) behaviour can be defined
Instance Method Summary collapse
-
#or_else ⇒ Object
Provide an alternative.
Instance Method Details
#or_else ⇒ Object
Provide an alternative. The type must be as follow :
Functor(A).or_else{ Functor(A) } : Functor(A)
9 10 11 |
# File 'lib/funkr/categories/alternative.rb', line 9 def or_else raise "Alternative#or_else not implemented" end |