Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
parse_array(name)
private
Runs through the argument array getting all strings until no string is
found or a switch is found.
["a", "b", "c"]
And returns it as an array:
["a", "b", "c"]
# File lib/bundler/vendor/thor/lib/thor/parser/arguments.rb, line 118
def parse_array(name)
return shift if peek.is_a?(Array)
array = []
array << shift while current_is_value?
array
end