Module: EacCli::Runner::ForContext::ClassMethods

Defined in:
lib/eac_cli/runner/for_context.rb

Instance Method Summary collapse

Instance Method Details

#for_context(*methods_names) ⇒ void

This method returns an undefined value.

Parameters:

  • methods_names (Enumerable<Symbol>)


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

def for_context(*methods_names)
  for_context_methods.merge(methods_names.map(&:to_sym))
end

#for_context?(method_name) ⇒ Boolean

Parameters:

  • method_name (Symbol)

Returns:

  • (Boolean)


20
21
22
# File 'lib/eac_cli/runner/for_context.rb', line 20

def for_context?(method_name)
  for_context_methods.include?(method_name.to_sym)
end