# File lib/mercenary/command.rb, line 105 def command(cmd_name) cmd = Command.new(cmd_name, self) yield cmd @commands[cmd_name] = cmd end