Class: Chloe::Executable
- Inherits:
-
Thor
- Object
- Thor
- Chloe::Executable
- Defined in:
- lib/chloe/executable.rb
Class Method Summary collapse
Class Method Details
.start ⇒ Object
4 5 6 7 8 9 |
# File 'lib/chloe/executable.rb', line 4 def self.start @registry.each do |klass, subcommand, usage| self.register(klass, subcommand, usage, klass.summary) end super end |
.tag_for_registry(klass, subcommand_name, usage) ⇒ Object
11 12 13 14 |
# File 'lib/chloe/executable.rb', line 11 def self.tag_for_registry(klass, subcommand_name, usage) args = [klass, subcommand_name, usage] (@registry ||= []) << args end |