Module: CommandKit::ProgramName::ModuleMethods Private

Included in:
CommandKit::ProgramName
Defined in:
lib/command_kit/program_name.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#included(context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Extends ClassMethods or CommandKit::ProgramName::ModuleMethods, depending on whether CommandKit::ProgramName is being included into a class or a module.

Parameters:



19
20
21
22
23
24
25
26
27
# File 'lib/command_kit/program_name.rb', line 19

def included(context)
  super(context)

  if context.class == Module
    context.extend ModuleMethods
  else
    context.extend ClassMethods
  end
end