class Process::Roulette::Controller::FinishHandler
Handles the FINISH state of the controller state machine, by disconnecting from the croupier.
Public Class Methods
new(driver)
click to toggle source
# File lib/process/roulette/controller/finish_handler.rb, line 8 def initialize(driver) @driver = driver end
Public Instance Methods
run()
click to toggle source
# File lib/process/roulette/controller/finish_handler.rb, line 12 def run puts 'terminating...' @driver.socket.close nil end