Module: Zap::Command
- Defined in:
- lib/zap/command.rb
Class Method Summary collapse
Class Method Details
.run(*args) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/zap/command.rb', line 4 def run(*args) key = args.shift value = args.join(' ') unless args.length == 0 return help unless key return send key, value if is_arged_keyword?(key) return send key if is_keyword?(key) return save key, value if key && value return get key end |