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.
1274 1275 1276 |
# File 'lib/musa-dsl/series/base-series.rb', line 1274 def proc(&block) block ? (@block = block) : @block end |
#proc=(block) ⇒ Object
Sets the proc directly.
1281 1282 1283 |
# File 'lib/musa-dsl/series/base-series.rb', line 1281 def proc=(block) @block = block end |