Module: Kernel
- Defined in:
- lib/clive.rb
Instance Method Summary collapse
-
#Clive(*names) ⇒ Clive
The quickest way to grab a few options.
Instance Method Details
#Clive(*names) ⇒ Clive
The quickest way to grab a few options. This form does not allow arguments or commands! It is meant to be quick and simple.
136 137 138 139 140 141 142 |
# File 'lib/clive.rb', line 136 def Clive(*names) c = Clive::Base.new names.each do |o| c.option *Array(o).map(&:to_sym) end c end |