Module: Robbie
- Defined in:
- lib/robbie.rb,
lib/robbie/version.rb
Constant Summary collapse
- VERSION =
'2.1.6'
- E_VERSION =
"robbie v#{VERSION}"
Class Method Summary collapse
Class Method Details
.process(*args) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/robbie.rb', line 17 def process(*args) @args = args.first @first = @args.shift case @first when 'search' then Command.search(@args) when 'info' then Command.info(@args) when 'version', '--version' then puts Robbie::E_VERSION when 'help', '--help' then Command.help(@args) else puts "robbie: '#{@first}' is not a robbie command. See 'robbie --help'." end end |