Method: CommandKit::BugReport::ModuleMethods#included
- Defined in:
- lib/command_kit/bug_report.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::BugReport::ModuleMethods, depending on whether Options is being included into a class or a module.
28 29 30 31 32 33 34 35 36 |
# File 'lib/command_kit/bug_report.rb', line 28 def included(context) super(context) if context.class == Module context.extend ModuleMethods else context.extend ClassMethods end end |