module Listing::ClassMethods

Add a class method to track new subclasses

Public Instance Methods

inherited(subclass) click to toggle source

Track this new subclass for later @return [void]

# File lib/nose/util.rb, line 306
def inherited(subclass)
  class_variable_get(:@@registry)[subclass.name] = subclass
end
subclasses() click to toggle source

List all of the encountered subclasses @return [Hash<String, Class>]

# File lib/nose/util.rb, line 312
def subclasses
  class_variable_get(:@@registry)
end