Class: Sequent::Core::Commands
- Inherits:
-
Object
- Object
- Sequent::Core::Commands
- Defined in:
- lib/sequent/core/command.rb
Class Method Summary collapse
Class Method Details
.<<(command) ⇒ Object
53 54 55 |
# File 'lib/sequent/core/command.rb', line 53 def <<(command) commands << command end |
.all ⇒ Object
49 50 51 |
# File 'lib/sequent/core/command.rb', line 49 def all commands end |
.commands ⇒ Object
45 46 47 |
# File 'lib/sequent/core/command.rb', line 45 def commands @commands ||= [] end |
.find(command_name) ⇒ Object
57 58 59 |
# File 'lib/sequent/core/command.rb', line 57 def find(command_name) commands.find { |c| c.name == command_name } end |