Class: Sequent::Core::Commands
- Inherits:
-
Object
- Object
- Sequent::Core::Commands
- Defined in:
- lib/sequent/core/command.rb
Overview
Utility class containing all subclasses of BaseCommand
Class Method Summary collapse
Class Method Details
.<<(command) ⇒ Object
64 65 66 |
# File 'lib/sequent/core/command.rb', line 64 def <<(command) commands << command end |
.all ⇒ Object
60 61 62 |
# File 'lib/sequent/core/command.rb', line 60 def all commands end |
.commands ⇒ Object
56 57 58 |
# File 'lib/sequent/core/command.rb', line 56 def commands @commands ||= [] end |
.find(command_name) ⇒ Object
68 69 70 |
# File 'lib/sequent/core/command.rb', line 68 def find(command_name) commands.find { |c| c.name == command_name } end |