Module: Did::Action

Defined in:
lib/did/action.rb,
lib/did/action/sit.rb,
lib/did/action/report.rb,
lib/did/action/submit.rb

Defined Under Namespace

Classes: Report, Sit, Submit

Class Method Summary collapse

Class Method Details

.parse(argv) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/did/action.rb', line 7

def self.parse(argv)
  if argv[0] == "sit!"
    parse_sit(argv)
  elsif argv[0] == "what?"
    parse_report(argv)
  else
    parse_submit(argv)
  end
end