Class: J1::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/j1/command.rb

Class Method Summary collapse

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

.subclassesObject

A list of subclasses of J1::Command




7
8
9
# File 'lib/j1/command.rb', line 7

def subclasses
  @subclasses ||= []
end