class Slop::ArrayOption
Collect multiple items into a single Array. Support arguments separated by commas or multiple occurences.
Public Instance Methods
call(value)
click to toggle source
# File lib/slop/types.rb, line 63 def call(value) @value ||= [] @value.concat value.split(delimiter, limit) end
default_value()
click to toggle source
# File lib/slop/types.rb, line 68 def default_value config[:default] || [] end
delimiter()
click to toggle source
# File lib/slop/types.rb, line 72 def delimiter config[:delimiter] || "," end
limit()
click to toggle source
# File lib/slop/types.rb, line 76 def limit config[:limit] || 0 end