Class: AbstractEventedQueue Abstract
- Inherits:
-
Object
- Object
- AbstractEventedQueue
- Defined in:
- lib/evented-queue/abstract.rb
Overview
This class is abstract.
Abstract evented queue.
Direct Known Subclasses
Instance Method Summary collapse
-
#clear {|nil| ... } ⇒ Object
(also: #clear!)
abstract
Clears the queue.
-
#empty? {|Boolean| ... } ⇒ Boolean
abstract
Indicates queue is empty.
-
#length {|Integer| ... } ⇒ Integer
abstract
Indicates length of the queue.
-
#pop {|Object| ... } ⇒ Object
abstract
Pushes value out of the queue.
-
#push(value, &block) ⇒ Object
abstract
Pushes value into the queue.
Instance Method Details
#clear {|nil| ... } ⇒ Object Also known as: clear!
This method is abstract.
Clears the queue.
66 67 68 |
# File 'lib/evented-queue/abstract.rb', line 66 def clear(&block) not_implemented end |
#empty? {|Boolean| ... } ⇒ Boolean
This method is abstract.
Indicates queue is empty.
55 56 57 |
# File 'lib/evented-queue/abstract.rb', line 55 def empty?(&block) not_implemented end |
#length {|Integer| ... } ⇒ Integer
This method is abstract.
Indicates length of the queue.
43 44 45 |
# File 'lib/evented-queue/abstract.rb', line 43 def length(&block) not_implemented end |
#pop {|Object| ... } ⇒ Object
This method is abstract.
Pushes value out of the queue.
31 32 33 |
# File 'lib/evented-queue/abstract.rb', line 31 def pop(&block) not_implemented end |
#push(value, &block) ⇒ Object
This method is abstract.
Pushes value into the queue.
20 21 22 |
# File 'lib/evented-queue/abstract.rb', line 20 def push(value, &block) not_implemented end |