Module: Musa::Series::Serie::WithBlock
- Defined in:
- lib/musa-dsl/series/base-series.rb
Overview
Mixin for series with block/proc attribute (simple version).
Provides proc accessor for series that use a Proc directly
without SmartProcBinder wrapping.
Instance Method Summary collapse
-
#proc(&block) ⇒ Object
Gets or sets the proc.
-
#proc=(block) ⇒ Object
Sets the proc directly.
Instance Method Details
#proc ⇒ Proc? #proc(&block) ⇒ Proc
Gets or sets the proc.
1357 1358 1359 |
# File 'lib/musa-dsl/series/base-series.rb', line 1357 def proc(&block) block ? (@block = block) : @block end |
#proc=(block) ⇒ Object
Sets the proc directly.
1364 1365 1366 |
# File 'lib/musa-dsl/series/base-series.rb', line 1364 def proc=(block) @block = block end |