Class: Listener
- Inherits:
-
Object
- Object
- Listener
- Defined in:
- lib/codefusion/listener.rb
Instance Method Summary collapse
-
#initialize(classroom) ⇒ Listener
constructor
A new instance of Listener.
- #start ⇒ Object
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
#start ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/codefusion/listener.rb', line 6 def start begin View.(@classroom.path, url) set_listener.start sleep rescue Exception => e View. end end |