Sha256: 66212d0d96dda94eb6f2f3f8b5d5971fedeb4fc785086a22e72fc191bf516f4c
Contents?: true
Size: 333 Bytes
Versions: 23
Compression:
Stored size: 333 Bytes
Contents
# frozen_string_literal: true module Esse class Index module ClassMethods def descendants # :nodoc: descendants = [] ObjectSpace.each_object(singleton_class) do |k| descendants.unshift k unless k == self end descendants.uniq end end extend ClassMethods end end
Version data entries
23 entries across 23 versions & 1 rubygems