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.
689 690 691 |
# File 'lib/goat.rb', line 689 def initialize @emchannel = EM::Channel.new end |
Instance Attribute Details
#emchannel ⇒ Object (readonly)
thin wrapper for EM::Channel
687 688 689 |
# File 'lib/goat.rb', line 687 def emchannel @emchannel end |
Instance Method Details
#send_message(msg) ⇒ Object
693 694 695 |
# File 'lib/goat.rb', line 693 def (msg) @emchannel.push(msg) end |