class Spark::Command::Compact
Public Instance Methods
lazy_run(iterator, *)
click to toggle source
# File lib/spark/command/basic.rb, line 96 def lazy_run(iterator, *) iterator.select do |item| !item.nil? end end
run(iterator, *)
click to toggle source
# File lib/spark/command/basic.rb, line 91 def run(iterator, *) iterator.compact! iterator end