Method: Chronolog::Engine#start
- Defined in:
- lib/chronolog/engine.rb
#start(time: "now") ⇒ Object Also known as: started
14 15 16 17 18 19 |
# File 'lib/chronolog/engine.rb', line 14 def start(time: "now") raise "Received 'start' after 'start'" unless @started_at.nil? @started_at = Chronic.parse(time) @csv << ["started", "at", @started_at.to_i] print_header(format("Started session at %s", @started_at)) end |