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.
399 400 401 |
# File 'lib/dry/monads/list.rb', line 399 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
397 398 399 |
# File 'lib/dry/monads/list.rb', line 397 def type @type end |