Class: Spark::Command::Foreach
- Inherits:
-
Object
- Object
- Spark::Command::Foreach
- Defined in:
- lib/spark/command/basic.rb
Overview
Foreach
Instance Method Summary collapse
Instance Method Details
#run(iterator) ⇒ Object
234 235 236 237 238 239 |
# File 'lib/spark/command/basic.rb', line 234 def run(iterator, *) iterator.each do |item| @each_function.call(item) end nil end |