Method: Beaver#__appendCommand

Defined in:
lib/beaver.rb

#__appendCommand(cmd) ⇒ Object

Append a command to the global beaver object

  • cmd: Command



51
52
53
54
55
56
57
# File 'lib/beaver.rb', line 51

def __appendCommand(cmd)
  if @commands.size == 0
    @mainCommand = cmd.name
  end

  @commands[cmd.name] = cmd
end