Queue
ruby/spec describes 15 methods in core/queue, and Metorex implements 15 of them. The parameters are what Method#parameters answers under Metorex.
Queue#<<: implemented, parameters[[:req]]. Pushes the givenobjectto the queue.Queue#clear: implemented, parameters[]. Removes all objects from the queue. An example calling it.Queue#close: implemented, parameters[]. Closes the queue. An example calling it.Queue#closed?: implemented, parameters[]. Returnstrueif the queue is closed. An example calling it.Queue#deq: implemented, parameters[[:rest, :args]]. Retrieves data from the queue. An example calling it.Queue#empty?: implemented, parameters[]. Returnstrueif the queue is empty. An example calling it.Queue#enq: implemented, parameters[[:req]]. Pushes the givenobjectto the queue. An example calling it.Queue#freeze: implemented, parameters[]. The queue can't be frozen, so this method raises an exception: An example calling it.Queue#initialize: implemented, parameters[[:rest, :items]]. An example calling it.Queue#length: implemented, parameters[]. Returns the length of the queue. An example calling it.Queue#num_waiting: implemented, parameters[]. Returns the number of threads waiting on the queue. An example calling it.Queue#pop: implemented, parameters[[:rest, :args]]. Retrieves data from the queue. An example calling it.Queue#push: implemented, parameters[[:req]]. Pushes the givenobjectto the queue. An example calling it.Queue#shift: implemented, parameters[[:rest, :args]]. Retrieves data from the queue. An example calling it.Queue#size: implemented, parameters[]. Returns the length of the queue. An example calling it.
The method summaries are the first sentences of Ruby's own documentation for each method, read from MRI 4.0.6's ri data. Ruby's documentation is distributed under Ruby's license.