lib/ddtrace/runtime/class_count.rb in ddtrace-0.28.0 vs lib/ddtrace/runtime/class_count.rb in ddtrace-0.29.0
- old
+ new
@@ -3,15 +3,15 @@
# Retrieves number of classes from runtime
module ClassCount
module_function
def value
- ObjectSpace.count_objects[:T_CLASS]
+ ::ObjectSpace.count_objects[:T_CLASS]
end
def available?
- ObjectSpace.respond_to?(:count_objects) \
- && ObjectSpace.count_objects.key?(:T_CLASS)
+ ::ObjectSpace.respond_to?(:count_objects) \
+ && ::ObjectSpace.count_objects.key?(:T_CLASS)
end
end
end
end