Class: Uber::Builder::Builders
- Inherits:
-
Array
- Object
- Array
- Uber::Builder::Builders
- Defined in:
- lib/uber/builder.rb
Instance Method Summary collapse
Instance Method Details
#<<(proc) ⇒ Object
19 20 21 |
# File 'lib/uber/builder.rb', line 19 def <<(proc) super Uber::Option[proc, instance_exec: true] end |
#call(context, *args) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/uber/builder.rb', line 11 def call(context, *args) each do |block| klass = block.(context, *args) and return klass # Uber::Value#call() end context end |