module CommandKit::Options::Parser::ModuleMethods
@api private
Public Instance Methods
included(context)
click to toggle source
Sets {CommandKit::Usage::ClassMethods#usage .usage} or extends {ModuleMethods}, depending on whether {Options::Parser} is being included into a class or a module.
@param [Class, Module] context
The class or module including {Parser}.
Calls superclass method
# File lib/command_kit/options/parser.rb, line 48 def included(context) super if context.class == Module context.extend ModuleMethods else context.usage '[options]' end end