SizedQueue

ruby/spec describes 17 methods in core/sizedqueue, and Metorex implements 17 of them. The parameters are what Method#parameters answers under Metorex.

  • SizedQueue#<<: implemented, parameters [[:rest, :args]]. Pushes object to the queue.
  • SizedQueue#clear: implemented, parameters []. Removes all objects from the queue. An example calling it.
  • SizedQueue#close: implemented, parameters []. Similar to Thread::Queue#close. An example calling it.
  • SizedQueue#closed?: implemented, parameters []. An example calling it.
  • SizedQueue#deq: implemented, parameters [[:rest, :args]]. Retrieves data from the queue. An example calling it.
  • SizedQueue#empty?: implemented, parameters []. An example calling it.
  • SizedQueue#enq: implemented, parameters [[:rest, :args]]. Pushes object to the queue. An example calling it.
  • SizedQueue#freeze: implemented, parameters []. Prevents further modifications to obj. An example calling it.
  • SizedQueue#length: implemented, parameters []. An example calling it.
  • SizedQueue#max: implemented, parameters []. Returns the maximum size of the queue. An example calling it.
  • SizedQueue#max=: implemented, parameters [[:req]]. Sets the maximum size of the queue to the given number.
  • SizedQueue.new: implemented, parameters [[:rest]]. Creates a fixed-length queue with a maximum size of max. An example calling it.
  • SizedQueue#num_waiting: implemented, parameters []. Returns the number of threads waiting on the queue. An example calling it.
  • SizedQueue#pop: implemented, parameters [[:rest, :args]]. Retrieves data from the queue. An example calling it.
  • SizedQueue#push: implemented, parameters [[:rest, :args]]. Pushes object to the queue. An example calling it.
  • SizedQueue#shift: implemented, parameters [[:rest, :args]]. Retrieves data from the queue. An example calling it.
  • SizedQueue#size: implemented, parameters []. 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.