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.



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

def next
  @next
end

#ownerObject

Returns the value of attribute owner.



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

def owner
  @owner
end

#prevObject

Returns the value of attribute prev.



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

def prev
  @prev
end

Instance Method Details

#after_add(new_queue) ⇒ Object



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

def after_add(new_queue)
end

#before_rem(old_queue) ⇒ Object



21
22
# File 'lib/contrek/finder/concurrent/listable.rb', line 21

def before_rem(old_queue)
end

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



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

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

#payloadObject

Raises:

  • (NoMethodError)


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

def payload
  raise NoMethodError
end