Class: Bixby::ThreadPool::Task
- Inherits:
-
Object
- Object
- Bixby::ThreadPool::Task
- Defined in:
- lib/bixby-common/util/thread_pool/task.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#command ⇒ Object
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command, block = nil) ⇒ Task
constructor
A new instance of Task.
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
#block ⇒ Object
Returns the value of attribute block.
6 7 8 |
# File 'lib/bixby-common/util/thread_pool/task.rb', line 6 def block @block end |
#command ⇒ Object
Returns the value of attribute command.
6 7 8 |
# File 'lib/bixby-common/util/thread_pool/task.rb', line 6 def command @command end |