module CommandKit::Options::ModuleMethods

@api private

Public Instance Methods

included(context) click to toggle source

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

@param [Class, Module] context

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

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