Sha256: 2f54ab9889e73b3871dfda7f64dff3ff478bbf34ab20db9ab36e84668a26bcd8

Contents?: true

Size: 241 Bytes

Versions: 2

Compression:

Stored size: 241 Bytes

Contents

module ObjectSpace
  
  class << self

    # ==== Returns
    # Array[Class]:: All the classes in the object space.
    def classes
      klasses = []
      ObjectSpace.each_object(Class) {|o| klasses << o}
      klasses
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb-core-0.9.2 lib/merb-core/core_ext/object_space.rb
merb-core-0.9.3 lib/merb-core/core_ext/object_space.rb