Class: Polipus::QueueOverflow::DevNullQueue

Inherits:
Object
  • Object
show all
Defined in:
lib/polipus/queue_overflow/dev_null_queue.rb

Instance Method Summary collapse

Constructor Details

#initializeDevNullQueue

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

#clearObject



16
17
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 16

def clear
end

#empty?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/polipus/queue_overflow/dev_null_queue.rb', line 12

def empty?
  true
end

#lengthObject 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