Class: Mockingbird::Commands::Quit

Inherits:
Command
  • Object
show all
Defined in:
lib/mockingbird/commands.rb

Instance Attribute Summary

Attributes inherited from Command

#callback, #next_command

Instance Method Summary collapse

Methods inherited from Command

#advance, #initialize

Constructor Details

This class inherits a constructor from Mockingbird::Commands::Command

Instance Method Details

#run(conn) ⇒ Object



90
91
92
93
94
# File 'lib/mockingbird/commands.rb', line 90

def run(conn)
  EM.add_timer(0.5) do
    EM.stop 
  end      
end