Module: CommandKit::OS::Linux::ModuleMethods Private

Included in:
CommandKit::OS::Linux
Defined in:
lib/command_kit/os/linux.rb

Overview

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.

Since:

  • 0.2.0

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::OS::Linux::ModuleMethods, depending on whether CommandKit::OS is being included into a class or a module.

Parameters:

  • context (Class, Module)

    The class or module which is including CommandKit::OS.

Since:

  • 0.2.0



46
47
48
49
50
51
52
53
54
# File 'lib/command_kit/os/linux.rb', line 46

def included(context)
  super(context)

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