Sha256: 3fc359a13254a99ca45f8aa307bdee441141a5ebb6b433f22dc1ccd63f6a1212

Contents?: true

Size: 266 Bytes

Versions: 4

Compression:

Stored size: 266 Bytes

Contents

module Kuhsaft
  module PagePart
    def self.all
      descendants = []
      ObjectSpace.each_object(Class) do |k|
        descendants.unshift k if k < self
      end
      descendants.uniq!
      descendants.map { |d| d.to_s.underscore.to_sym }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kuhsaft-0.0.6 app/models/kuhsaft/page_part.rb
kuhsaft-0.0.5 app/models/kuhsaft/page_part.rb
kuhsaft-0.0.4 app/models/kuhsaft/page_part.rb
kuhsaft-0.0.3 app/models/kuhsaft/page_part.rb