Sha256: 4c880d18f19aa7de6eaaeb671ca4705954b17c4a200e244f222235ec18134b73

Contents?: true

Size: 192 Bytes

Versions: 20

Compression:

Stored size: 192 Bytes

Contents

# encoding: utf-8

module Nimbu
  module Utils
    module Descendants
      def descendants
        ObjectSpace.each_object(::Class).select { |klass| klass < self }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
nimbu-api-0.5.0 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.4.4 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.4.3 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.4.2 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.4.1 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.4.0 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.3.0 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.2.1 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.2 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.2.beta lib/nimbu-api/utils/descendants.rb
nimbu-api-0.1.5 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.1.4 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.1.3 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.1.1 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.1 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.0.2 lib/nimbu-api/utils/descendants.rb
nimbu-api-0.0.1 lib/nimbu-api/utils/descendants.rb