Method: Cequel::Record.descendants

Defined in:
lib/cequel/record.rb

.descendantsArray<Class>

Returns All the record classes that are currently defined.

Returns:

  • (Array<Class>)

    All the record classes that are currently defined.



124
125
126
127
128
129
130
131
132
# File 'lib/cequel/record.rb', line 124

def descendants
  weak_descendants.map do |clazz|
    begin
      clazz.__getobj__ if clazz.weakref_alive?
    rescue WeakRef::RefError
      nil
    end
  end.compact
end