Class: EacCli::Runner::ContextResponders::Runner

Inherits:
Base
  • Object
show all
Defined in:
lib/eac_cli/runner/context_responders/runner.rb

Instance Method Summary collapse

Methods inherited from Base

#if_callable

Instance Method Details

#call(*args, &block) ⇒ Object



14
15
16
# File 'lib/eac_cli/runner/context_responders/runner.rb', line 14

def call(*args, &block)
  runner.send(method_name, *args, &block)
end

#callable?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/eac_cli/runner/context_responders/runner.rb', line 10

def callable?
  runner.respond_to?(method_name)
end