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.
1339 1340 1341 |
# File 'lib/musa-dsl/series/base-series.rb', line 1339 def proc(&block) block ? (@block = block) : @block end |
#proc=(block) ⇒ Object
Sets the proc directly.
1346 1347 1348 |
# File 'lib/musa-dsl/series/base-series.rb', line 1346 def proc=(block) @block = block end |