bin/parse_tree_abc in ParseTree-1.3.6 vs bin/parse_tree_abc in ParseTree-1.3.7
- old
+ new
@@ -6,17 +6,12 @@
#
# A simple way to measure the complexity of a function or method.
PARSE_TREE_ABC=true
-begin
- require 'rubygems'
- require_gem 'ParseTree'
-rescue LoadError
- require 'parse_tree'
-end
-
- require 'sexp_processor'
+begin require 'rubygems' rescue LoadError end
+require 'parse_tree'
+require 'sexp_processor'
old_classes = []
ObjectSpace.each_object(Module) do |klass|
old_classes << klass
end