Module: Test::Right::Utils::SubclassTracking
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 |
#subclasses ⇒ Object
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 |