Class: Hipbot::Adapters::Shell

Inherits:
Object
  • Object
show all
Includes:
Hipbot::Adaptable
Defined in:
lib/hipbot/adapters/shell.rb

Defined Under Namespace

Modules: KeyboardHandler

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hipbot::Adaptable

#invite_to_room, #join_room, #kick_from_room, #leave_room, #restart!, #send_to_room, #set_presence, #set_topic

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.



6
7
8
# File 'lib/hipbot/adapters/shell.rb', line 6

def connection
  @connection
end

Instance Method Details

#start!Object



8
9
10
# File 'lib/hipbot/adapters/shell.rb', line 8

def start!
  EM.open_keyboard(KeyboardHandler, self)
end