Class: Polipus::QueueOverflow::DevNullQueue
- Inherits:
-
Object
- Object
- Polipus::QueueOverflow::DevNullQueue
- Defined in:
- lib/polipus/queue_overflow/dev_null_queue.rb
Instance Method Summary collapse
- #clear ⇒ Object
- #empty? ⇒ Boolean
-
#initialize ⇒ DevNullQueue
constructor
A new instance of DevNullQueue.
- #length ⇒ Object (also: #size)
- #pop(_ = false) ⇒ Object (also: #dec, #shift)
- #push(data) ⇒ Object (also: #enc, #<<)
Constructor Details
#initialize ⇒ DevNullQueue
Returns a new instance of DevNullQueue.
5 6 |
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 5 def initialize end |
Instance Method Details
#clear ⇒ Object
16 17 |
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 16 def clear end |
#empty? ⇒ Boolean
12 13 14 |
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 12 def empty? true end |
#length ⇒ Object Also known as: size
8 9 10 |
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 8 def length 0 end |
#pop(_ = false) ⇒ Object Also known as: dec, shift
22 23 24 |
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 22 def pop(_ = false) nil end |
#push(data) ⇒ Object Also known as: enc, <<
19 20 |
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 19 def push data end |