Class: Robin::ArgsParser

Inherits:
Object
  • Object
show all
Defined in:
lib/robin/args_parser.rb

Constant Summary collapse

USER_TIMELINE =
['i']
NEW_TWEET =
['t']
FOLLOWERS =
['fr']
HOME_TIMELINE =
['s']
HELP =
['h', '-help']
NEW_USER =
['user']

Class Method Summary collapse

Class Method Details

.parse(args) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/robin/args_parser.rb', line 19

def self.parse(args)
  if args.empty?
    Robin::Actions::HomeTimeline.new
  else
    parse_args(args)
  end
end