Sha256: 48ec3db4a5cd916b1aeff5e45846ffbbc5bfa1f9f6a0d8d292e4b4f5e62e8109

Contents?: true

Size: 267 Bytes

Versions: 46

Compression:

Stored size: 267 Bytes

Contents

module Sapience
  # rubocop:disable ClassVars
  module Descendants
    def descendants # :nodoc:
      descendants = []
      ObjectSpace.each_object(singleton_class) do |k|
        descendants.unshift k unless k == self
      end
      descendants
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
sapience-2.4.0 lib/sapience/descendants.rb
sapience-2.3.5 lib/sapience/descendants.rb
sapience-2.3.4 lib/sapience/descendants.rb
sapience-2.3.3 lib/sapience/descendants.rb
sapience-2.2.3 lib/sapience/descendants.rb
sapience-2.2.1 lib/sapience/descendants.rb
sapience-2.2.0 lib/sapience/descendants.rb
sapience-2.1.0 lib/sapience/descendants.rb
sapience-2.0.5 lib/sapience/descendants.rb
sapience-2.0.4 lib/sapience/descendants.rb
sapience-2.0.3 lib/sapience/descendants.rb
sapience-2.0.2 lib/sapience/descendants.rb
sapience-2.0.1 lib/sapience/descendants.rb
sapience-2.0.0 lib/sapience/descendants.rb
sapience-1.0.15 lib/sapience/descendants.rb
sapience-1.0.14 lib/sapience/descendants.rb
sapience-1.0.13 lib/sapience/descendants.rb
sapience-1.0.12 lib/sapience/descendants.rb
sapience-1.0.11 lib/sapience/descendants.rb
sapience-1.0.10 lib/sapience/descendants.rb