Method: ComposedCommands::ComposedCommand.commands

Defined in:
lib/composed_commands/composed_command.rb

.commandsObject



6
7
8
9
10
11
12
13
# File 'lib/composed_commands/composed_command.rb', line 6

def self.commands
  inherited_commands = if self.superclass.respond_to?(:commands)
    self.superclass.commands
  else
    []
  end
  Array(inherited_commands) + Array(@commands)
end