class MGit::CommandManager

Public Class Methods

[](cmd) click to toggle source
# File lib/m-git/command_manager.rb, line 15
def [](cmd)
  class_with_command(cmd)
end
class_with_command(cmd) click to toggle source
# File lib/m-git/command_manager.rb, line 19
def class_with_command(cmd)
  commands[cmd]
end
commands() click to toggle source

cmd generate

# File lib/m-git/command_manager.rb, line 7
def commands
  @commands ||= {}
end
register_command(cmd, cls) click to toggle source
# File lib/m-git/command_manager.rb, line 11
def register_command(cmd, cls)
  commands[cmd] = cls
end