Class: TimerCli::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/timer_cli/command.rb

Class Method Summary collapse

Class Method Details

.startObject



4
5
6
7
8
9
# File 'lib/timer_cli/command.rb', line 4

def start
  params = Parameters.new(ARGV)

  timer = Timer.new(params.sec)
  timer.run
end