Class: Goat::Channel
Instance Attribute Summary collapse
-
#emchannel ⇒ Object
readonly
thin wrapper for EM::Channel.
Instance Method Summary collapse
-
#initialize ⇒ Channel
constructor
A new instance of Channel.
- #send_message(msg) ⇒ Object
Constructor Details
#initialize ⇒ Channel
Returns a new instance of Channel.
702 703 704 |
# File 'lib/goat.rb', line 702 def initialize @emchannel = EM::Channel.new end |
Instance Attribute Details
#emchannel ⇒ Object (readonly)
thin wrapper for EM::Channel
700 701 702 |
# File 'lib/goat.rb', line 700 def emchannel @emchannel end |
Instance Method Details
#send_message(msg) ⇒ Object
706 707 708 |
# File 'lib/goat.rb', line 706 def (msg) @emchannel.push(msg) end |