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.
701 702 703 |
# File 'lib/goat.rb', line 701 def initialize @emchannel = EM::Channel.new end |
Instance Attribute Details
#emchannel ⇒ Object (readonly)
thin wrapper for EM::Channel
699 700 701 |
# File 'lib/goat.rb', line 699 def emchannel @emchannel end |
Instance Method Details
#send_message(msg) ⇒ Object
705 706 707 |
# File 'lib/goat.rb', line 705 def (msg) @emchannel.push(msg) end |