Module: Musa::Series::Serie::WithSmartBlock
- Included in:
- Operations::Processor
- Defined in:
- lib/musa-dsl/series/base-series.rb
Overview
Mixin for series with SmartProcBinder-wrapped block attribute.
Similar to WithBlock but wraps procs in SmartProcBinder for flexible parameter binding.
Instance Method Summary collapse
-
#proc(&block) ⇒ Object
Gets or sets the proc with SmartProcBinder wrapping.
-
#proc=(block) ⇒ Object
Sets the proc with SmartProcBinder wrapping.
Instance Method Details
#proc ⇒ Proc? #proc(&block) ⇒ Extension::SmartProcBinder::SmartProcBinder
Gets or sets the proc with SmartProcBinder wrapping.
1377 1378 1379 1380 1381 1382 1383 |
# File 'lib/musa-dsl/series/base-series.rb', line 1377 def proc(&block) if block @block = Extension::SmartProcBinder::SmartProcBinder.new(block) else @block&.proc end end |
#proc=(block) ⇒ Object
Sets the proc with SmartProcBinder wrapping.
1388 1389 1390 |
# File 'lib/musa-dsl/series/base-series.rb', line 1388 def proc=(block) @block = Extension::SmartProcBinder::SmartProcBinder.new(block) end |