class Dimr::Runner

Public Class Methods

new(factory, run_method) click to toggle source
# File lib/dimr.rb, line 43
def initialize(factory, run_method)
  @run_method, @factory = run_method, factory
end

Public Instance Methods

call(*args) click to toggle source
# File lib/dimr.rb, line 47
def call(*args)
  runable = @factory.call(*args)
  runable.public_send(@run_method)
end