Class: Fairy::CJunction::PortQueue
- Inherits:
-
XThread::Queue
- Object
- XThread::Queue
- Fairy::CJunction::PortQueue
- Includes:
- Enumerable
- Defined in:
- lib/fairy/master/c-junction.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize ⇒ PortQueue
constructor
A new instance of PortQueue.
Constructor Details
#initialize ⇒ PortQueue
Returns a new instance of PortQueue.
44 45 46 |
# File 'lib/fairy/master/c-junction.rb', line 44 def initialize super(XThread::Queue.new) end |
Instance Method Details
#each ⇒ Object
48 49 50 51 52 |
# File 'lib/fairy/master/c-junction.rb', line 48 def each while e = pop yield e end end |