Method: Sym::App::Commands.order

Defined in:
lib/sym/app/commands.rb

.order(command_class, after) ⇒ Object



27
28
29
30
# File 'lib/sym/app/commands.rb', line 27

def order(command_class, after)
  self.dependency[command_class.short_name].unshift(after) if after
  self.dependency[command_class.short_name].flatten!
end