class Object
Public Instance Methods
process(*args)
click to toggle source
# 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