Class: JRubyParallelProcessing::ApplicationCallable

Inherits:
Object
  • Object
show all
Includes:
Callable
Defined in:
lib/jruby_parallel_processing/application_callable.rb

Direct Known Subclasses

StreamProcessorCallable, TaskCallable

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ ApplicationCallable

Returns a new instance of ApplicationCallable.



7
8
9
# File 'lib/jruby_parallel_processing/application_callable.rb', line 7

def initialize(&block)
  @block = block
end

Instance Method Details

#callObject



11
12
13
# File 'lib/jruby_parallel_processing/application_callable.rb', line 11

def call
  @block.call
end