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

rubocop:disable Naming/PredicateMethod

Yields:

  • (_self)

Yield Parameters:



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

def if_callable # rubocop:disable Naming/PredicateMethod
  return false unless callable?

  yield(self)
  true
end