Module: CommandKit::OS::ModuleMethods Private
- Included in:
- CommandKit::OS
- Defined in:
- lib/command_kit/os.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
-
#included(context) ⇒ Object
private
Extends ClassMethods or ModuleMethods, depending on whether CommandKit::OS is being included into a class or a module.
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::ModuleMethods, depending on whether CommandKit::OS is being included into a class or a module.
42 43 44 45 46 47 48 49 50 |
# File 'lib/command_kit/os.rb', line 42 def included(context) super(context) if context.class == Module context.extend ModuleMethods else context.extend ClassMethods end end |