Class: Dry::Monads::List::ListBuilder
- Inherits:
-
Object
- Object
- Dry::Monads::List::ListBuilder
- Defined in:
- lib/dry/monads/list.rb
Instance Attribute Summary collapse
- #type ⇒ Object readonly
Instance Method Summary collapse
- #[](*args) ⇒ Object
- #coerce(value) ⇒ Object
-
#initialize(type) ⇒ ListBuilder
constructor
A new instance of ListBuilder.
- #pure(val = Undefined, &block) ⇒ Object
Constructor Details
#initialize(type) ⇒ ListBuilder
Returns a new instance of ListBuilder.
391 392 393 |
# File 'lib/dry/monads/list.rb', line 391 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
389 390 391 |
# File 'lib/dry/monads/list.rb', line 389 def type @type end |