Class: Ankit::ChallengeCommand
- Includes:
- Challenge, Ankit::Challenge::Approaching, Coming, Finding, RoundCounting
- Defined in:
- lib/ankit/challenge_command.rb
Constant Summary
Constants inherited from Command
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods included from Ankit::Challenge::Approaching
Methods included from RoundCounting
#last_round, #latest_round, #next_round, #round_proceeded
Methods included from Coming
coming_events, coming_paths, existing_events
Methods included from Finding
Methods inherited from Command
available, by_name, command_name, define_options, #initialize, option_spec
Constructor Details
This class inherits a constructor from Ankit::Command
Instance Method Details
#execute ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ankit/challenge_command.rb', line 18 def execute() Signal.trap("INT") do runtime.clear_screen STDERR.print("Quit.\n") exit(0) end initial_state.keep_pumping_until { |state| state.over? } Signal.trap("INT", "DEFAULT") end |