Method: CommandKit::Arguments::ModuleMethods#included
- Defined in:
- lib/command_kit/arguments.rb
#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::Arguments::ModuleMethods, depending on whether CommandKit::Arguments is being included into a class or module.
66 67 68 69 70 71 72 73 74 |
# File 'lib/command_kit/arguments.rb', line 66 def included(context) super(context) if context.class == Module context.extend ModuleMethods else context.extend ClassMethods end end |