Class Test::Unit::Collector::ObjectSpace
In: test/unit/collector/objectspace.rb
Parent: Object

Methods

collect   new  

Included Modules

Collector

Constants

NAME = 'collected from the ObjectSpace'

Public Class methods

[Source]

# File test/unit/collector/objectspace.rb, line 15
        def initialize(source=::ObjectSpace)
          super()
          @source = source
        end

Public Instance methods

[Source]

# File test/unit/collector/objectspace.rb, line 20
        def collect(name=NAME)
          suite = TestSuite.new(name)
          sub_suites = []
          @source.each_object(Class) do |klass|
            if(Test::Unit::TestCase > klass)
              add_suite(sub_suites, klass.suite)
            end
          end
          sort(sub_suites).each{|s| suite << s}
          suite
        end

[Validate]

ruby-doc.org is hosted and run by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. Ruby-doc.org was created in 2002 to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.