Class: Queue

Inherits:
Object
  • Object
show all
Defined in:
lib/threadparty/queue.rb

Instance Method Summary collapse

Instance Method Details

#to_a!Object



2
3
4
5
6
7
8
# File 'lib/threadparty/queue.rb', line 2

def to_a!
	a = Array.new
	while !empty?
		a.push pop()
	end
	a
end