Submit
Path:
~
/
/
usr
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
test-unit-3.3.7
/
lib
/
test
/
unit
/
collector
/
File Content:
objectspace.rb
# Author:: Nathaniel Talbott. # Copyright:: Copyright (c) 2000-2003 Nathaniel Talbott. All rights reserved. # License:: Ruby license. require 'test/unit/collector' module Test module Unit module Collector class ObjectSpace include Collector NAME = 'collected from the ObjectSpace' def initialize(source=::ObjectSpace) super() @source = source end 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 end end end end
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
descendant.rb
368 bytes
0644
dir.rb
3276 bytes
0644
load.rb
5869 bytes
0644
objectspace.rb
787 bytes
0644
xml.rb
7492 bytes
0644
N4ST4R_ID | Naxtarrr