Module: Rodish::Plugins::HelpOrder

Defined in:
lib/rodish/plugins/help_order.rb

Defined Under Namespace

Modules: CommandMethods, DSLMethods

Class Method Summary collapse

Class Method Details

.after_load(app, default_help_order: nil) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/rodish/plugins/help_order.rb', line 17

def self.after_load(app, default_help_order: nil)
  if default_help_order
    app::DSL::Command.class_exec do
      define_method(:default_help_order){default_help_order.dup}
      alias_method(:default_help_order, :default_help_order)
      private(:default_help_order)
    end
  end
end