Module: Contrek::Concurrent::Listable

Included in:
Position
Defined in:
lib/contrek/finder/concurrent/listable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next.



4
5
6
# File 'lib/contrek/finder/concurrent/listable.rb', line 4

def next
  @next
end

#ownerObject

Returns the value of attribute owner.



4
5
6
# File 'lib/contrek/finder/concurrent/listable.rb', line 4

def owner
  @owner
end

#prevObject

Returns the value of attribute prev.



4
5
6
# File 'lib/contrek/finder/concurrent/listable.rb', line 4

def prev
  @prev
end

Instance Method Details

#after_add(new_queue) ⇒ Object



16
17
# File 'lib/contrek/finder/concurrent/listable.rb', line 16

def after_add(new_queue)
end

#before_rem(old_queue) ⇒ Object



19
20
# File 'lib/contrek/finder/concurrent/listable.rb', line 19

def before_rem(old_queue)
end

#initialize(*args, **kwargs, &block) ⇒ Object



5
6
7
8
9
10
# File 'lib/contrek/finder/concurrent/listable.rb', line 5

def initialize(*args, **kwargs, &block)
  super
  @next = nil
  @prev = nil
  @owner = nil
end

#payloadObject

Raises:

  • (NoMethodError)


12
13
14
# File 'lib/contrek/finder/concurrent/listable.rb', line 12

def payload
  raise NoMethodError
end