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

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

Direct Known Subclasses

Parent, Runner, RunnerMissingMethod, Set

Instance Method Summary collapse

Instance Method Details

#if_callable {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



15
16
17
18
19
20
# File 'lib/eac_cli/runner/context_responders/base.rb', line 15

def if_callable
  return false unless callable?

  yield(self)
  true
end