Module: TAlgebra::Monad
- Included in:
- List, Reader
- Defined in:
- lib/t_algebra/monad.rb,
lib/t_algebra/monad/list.rb,
lib/t_algebra/monad/maybe.rb,
lib/t_algebra/monad/either.rb,
lib/t_algebra/monad/parser.rb,
lib/t_algebra/monad/reader.rb,
lib/t_algebra/monad/single_valued.rb
Defined Under Namespace
Modules: SingleValued, Static
Classes: Either, List, Maybe, Parser, Reader
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
65
66
67
68
69
70
|
# File 'lib/t_algebra/monad.rb', line 65
def included(base)
base.class_eval do
include TAlgebra::Applicative
end
base.extend(Static)
end
|
Instance Method Details
#bind(&block) ⇒ Object
5
6
7
|
# File 'lib/t_algebra/monad.rb', line 5
def bind(&block)
raise "Implement #bind in extending class"
end
|