Class: AocCli::Solve::Respond::Wait

Inherits:
Response
  • Object
show all
Defined in:
lib/aoc_cli/solve.rb

Instance Attribute Summary

Attributes inherited from Response

#attempt

Instance Method Summary collapse

Methods inherited from Response

#initialize

Constructor Details

This class inherits a constructor from AocCli::Solve::Respond::Response

Instance Method Details

#reactObject



100
# File 'lib/aoc_cli/solve.rb', line 100

def react; end

#respondObject



91
92
93
94
95
96
# File 'lib/aoc_cli/solve.rb', line 91

def respond
  puts "  \#{\"Please wait\".yellow.bold}: \#{time.to_s} \n  response\n  self\nend\n"

#timeObject



97
98
99
# File 'lib/aoc_cli/solve.rb', line 97

def time
  attempt.raw.scan(/(?:\d+m\s)?\d+s/).first.to_s
end