Class: Listener

Inherits:
Object
  • Object
show all
Defined in:
lib/codefusion/listener.rb

Instance Method Summary collapse

Constructor Details

#initialize(classroom) ⇒ Listener

Returns a new instance of Listener.



2
3
4
# File 'lib/codefusion/listener.rb', line 2

def initialize(classroom)
  @classroom = classroom
end

Instance Method Details

#startObject



6
7
8
9
10
11
12
13
14
# File 'lib/codefusion/listener.rb', line 6

def start
  begin
    View.listen_message(@classroom.path, url)
    set_listener.start
    sleep
  rescue Exception => e
    View.exit_message
  end
end