Class: Fairy::CJunction::PortQueue
- Inherits:
-
Queue
- Object
- 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.
43 44 45 |
# File 'lib/fairy/master/c-junction.rb', line 43 def initialize super(Queue.new) end |
Instance Method Details
#each ⇒ Object
47 48 49 50 51 |
# File 'lib/fairy/master/c-junction.rb', line 47 def each while e = pop yield e end end |