module CommandKit::ProgramName::ModuleMethods

@api private

Public Instance Methods

included(context) click to toggle source

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

@param [Class, Module] context

The class or module which is including {ProgramName}.
Calls superclass method
# File lib/command_kit/program_name.rb, line 17
def included(context)
  super(context)

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