class StatfulClient::MyQueue

Custom Queue implementation to add a to_a method

@private

Public Instance Methods

to_a() click to toggle source

Transform Queue to Array

@return [Array] queue as array

# File lib/client.rb, line 344
def to_a
  [].tap { |array| array << pop until empty? }
end