Module: Test::Right::Utils::SubclassTracking

Included in:
Feature, Widget
Defined in:
lib/test/right/utils.rb

Instance Method Summary collapse

Instance Method Details

#inherited(subclass) ⇒ Object



5
6
7
8
# File 'lib/test/right/utils.rb', line 5

def inherited(subclass)
  @subclasses ||= [] 
  @subclasses << subclass 
end

#subclassesObject



10
11
12
# File 'lib/test/right/utils.rb', line 10

def subclasses
  @subclasses
end

#wipe!Object



14
15
16
# File 'lib/test/right/utils.rb', line 14

def wipe!
  @subclasses = []
end