Class: J1::Command
- Inherits:
-
Object
- Object
- J1::Command
- Defined in:
- lib/j1/command.rb
Direct Known Subclasses
J1::Commands::App, J1::Commands::Generate, J1::Commands::Help, J1::Commands::Nbi, J1::Commands::Patch, J1::Commands::Rebuild, J1::Commands::Reset, J1::Commands::Setup, J1::Commands::Site
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
18 19 20 21 |
# File 'lib/j1/command.rb', line 18 def inherited(base) subclasses << base super(base) end |
.subclasses ⇒ Object
A list of subclasses of J1::Command
7 8 9 |
# File 'lib/j1/command.rb', line 7 def subclasses @subclasses ||= [] end |