Class/Module Index [+]

Quicksearch

Sequel::Plugins::Subclasses::ClassMethods

Attributes

on_subclass[R]

Callable object that should be called with every descendent class created.

subclasses[R]

All subclasses for the current model. Does not include the model itself.

Public Instance Methods

descendents() click to toggle source

All descendent classes of this model.

# File lib/sequel/plugins/subclasses.rb, line 44
def descendents
  Sequel.synchronize{_descendents}
end
inherited(subclass) click to toggle source

Add the subclass to this model's current subclasses, and initialize a new subclasses instance variable in the subclass.

# File lib/sequel/plugins/subclasses.rb, line 53
def inherited(subclass)
  super
  Sequel.synchronize{subclasses << subclass}
  on_subclass.call(subclass) if on_subclass
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.