class Byebug::Printers::Base
def array_of_args(collection, &block)
def array_of_args(collection, &block) collection_with_index = collection.each.with_index collection_with_index.each_with_object([]) do |(item, index), array| args = block.call(item, index) array << args if args end end