Class: Concurrent::OneByOne::Job

Inherits:
Struct
  • Object
show all
Defined in:
lib/concurrent/executor/one_by_one.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args



7
8
9
# File 'lib/concurrent/executor/one_by_one.rb', line 7

def args
  @args
end

#blockObject

Returns the value of attribute block



7
8
9
# File 'lib/concurrent/executor/one_by_one.rb', line 7

def block
  @block
end

#executorObject

Returns the value of attribute executor



7
8
9
# File 'lib/concurrent/executor/one_by_one.rb', line 7

def executor
  @executor
end

Instance Method Details

#callObject



8
9
10
# File 'lib/concurrent/executor/one_by_one.rb', line 8

def call
  block.call *args
end