Class: Bixby::ThreadPool::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/bixby-common/util/thread_pool/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, block = nil) ⇒ Task

Returns a new instance of Task.



8
9
10
11
# File 'lib/bixby-common/util/thread_pool/task.rb', line 8

def initialize(command, block=nil)
  @command = command
  @block   = block
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



6
7
8
# File 'lib/bixby-common/util/thread_pool/task.rb', line 6

def block
  @block
end

#commandObject

Returns the value of attribute command.



6
7
8
# File 'lib/bixby-common/util/thread_pool/task.rb', line 6

def command
  @command
end