Skip to content

Instantly share code, notes, and snippets.

@maasha
Created October 2, 2014 11:27
Show Gist options
  • Save maasha/cc7705f8d43a7e3a8abb to your computer and use it in GitHub Desktop.
Save maasha/cc7705f8d43a7e3a8abb to your computer and use it in GitHub Desktop.
def run_enumerate
enums = [@options[:input]]
@commands.each_with_index do |command, i|
enums << Enumerator.new do |output|
command.run(enums[i], output)
end
end
enums.last.each {}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment