methods/def/implicit_return_after_while.rb
tests/_examples/methods/def/implicit_return_after_while.rb in the metorex repository.
def parse_args(argv)
result = []
while entry = argv.shift
result << entry
end
result
end
out = parse_args(["a", "b", "c"])
puts out.length