Class: Fairy::CSegShuffle::PortQueue

Inherits:
Queue
  • Object
show all
Includes:
Enumerable
Defined in:
lib/fairy/master/c-seg-shuffle.rb

Instance Method Summary collapse

Constructor Details

#initializePortQueue

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

#eachObject



80
81
82
83
84
# File 'lib/fairy/master/c-seg-shuffle.rb', line 80

def each
	while e = pop
	  yield e
	end
end