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
52 53 54 |
# File 'lib/sequent/core/command.rb', line 52 def <<(command) commands << command end |
.all ⇒ Object
48 49 50 |
# File 'lib/sequent/core/command.rb', line 48 def all commands end |
.commands ⇒ Object
44 45 46 |
# File 'lib/sequent/core/command.rb', line 44 def commands @commands ||= [] end |
.find(command_name) ⇒ Object
56 57 58 |
# File 'lib/sequent/core/command.rb', line 56 def find(command_name) commands.find { |c| c.name == command_name } end |