Module: Grably::Core::TaskExtensions::Bucket
- Included in:
- Grably::Core::TaskExtensions
- Defined in:
- lib/grably/core/task/bucket.rb
Overview
# Bucket Bucket keeps result of task execution
Instance Method Summary collapse
-
#<<(product_expr) ⇒ Task
Updates bucket with result of argument expand.
- #bucket ⇒ Object
- #ensure_bucket ⇒ Object
Instance Method Details
#<<(product_expr) ⇒ Task
Updates bucket with result of argument expand
11 12 13 14 15 16 17 |
# File 'lib/grably/core/task/bucket.rb', line 11 def <<(product_expr) = Product.(product_expr, self) ensure_bucket @bucket += self # Allow chaining calls like end |
#bucket ⇒ Object
19 20 21 |
# File 'lib/grably/core/task/bucket.rb', line 19 def bucket ensure_bucket end |
#ensure_bucket ⇒ Object
23 24 25 |
# File 'lib/grably/core/task/bucket.rb', line 23 def ensure_bucket @bucket ||= [] end |