Class: J1::Command
- Inherits:
-
Object
- Object
- J1::Command
- Defined in:
- lib/j1/command.rb
Direct Known Subclasses
J1::Commands::Generate, J1::Commands::Help, J1::Commands::Module
Class Method Summary collapse
-
.inherited(base) ⇒ Object
Keep a list of subclasses of J1::Command every time it’s inherited Called automatically.
-
.subclasses ⇒ Object
A list of subclasses of J1::Command.
Class Method Details
.inherited(base) ⇒ Object
Keep a list of subclasses of J1::Command every time it’s inherited Called automatically.
base - the subclass
Returns nothing
16 17 18 19 |
# File 'lib/j1/command.rb', line 16 def inherited(base) subclasses << base super(base) end |
.subclasses ⇒ Object
A list of subclasses of J1::Command
6 7 8 |
# File 'lib/j1/command.rb', line 6 def subclasses @subclasses ||= [] end |