Method: Ark::CLI::Argument#set

Defined in:
lib/ark/cli/argument.rb

#set(val) ⇒ Object

Set the value for this argument to val. Only valid for non-variadic arguments. For variadic args, use #push instead.



99
100
101
102
103
104
# File 'lib/ark/cli/argument.rb', line 99

def set(val)
  if self.variadic?
    raise ArgumentSetError, "Cannot set the value of a glob, use the #push method instead."
  end
  @value = val
end