Module: CommandKit::Options::ModuleMethods Private

Included in:
CommandKit::Options
Defined in:
lib/command_kit/options.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::Options::ModuleMethods, depending on whether CommandKit::Options is being included into a class or a module.

Parameters:



75
76
77
78
79
80
81
82
83
# File 'lib/command_kit/options.rb', line 75

def included(context)
  super(context)

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