Class: Mockingbird::Commands::Disconnect

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



47
48
49
50
# File 'lib/mockingbird/commands.rb', line 47

def run(conn)
  conn.close_connection
  advance(conn)
end