Module: MM
- Defined in:
- lib/mm/cmds/tabs.rb,
lib/mm.rb,
lib/mm/utils.rb,
lib/mm/cmds/run.rb,
lib/mm/rest_api.rb,
lib/mm/cmds/card.rb,
lib/mm/cmds/help.rb,
lib/mm/cmds/init.rb,
lib/mm/cmds/user.rb,
lib/mm/cmds/view.rb,
lib/mm/cmds/cards.rb,
lib/mm/repository.rb,
lib/mm/cmds/favorites.rb,
lib/mm/cmds/svncommit.rb,
lib/mm/cmds/abstract_command.rb
Overview
not finished yet
Defined Under Namespace
Modules: API, Command, Resource Classes: Repository
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.cmd_instance(str) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/mm/utils.rb', line 33 def cmd_instance(str) str = 'svncommit' if str == 'svnci' str = 'help' if str == '?' cmd_class = str.to_s.downcase.gsub(/(^|_)(.)/) { $2.upcase } Object.module_eval("::MM::Command::#{cmd_class}", __FILE__, __LINE__).new end |