Class: Fairy::CSegShuffle::PortQueue
- Inherits:
-
Queue
- Object
- Queue
- Fairy::CSegShuffle::PortQueue
- Includes:
- Enumerable
- Defined in:
- lib/fairy/master/c-seg-shuffle.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.
76 77 78 |
# File 'lib/fairy/master/c-seg-shuffle.rb', line 76 def initialize super(Queue.new) end |
Instance Method Details
#each ⇒ Object
80 81 82 83 84 |
# File 'lib/fairy/master/c-seg-shuffle.rb', line 80 def each while e = pop yield e end end |