lib/statsd/instrument.rb in statsd-instrument-2.9.0 vs lib/statsd/instrument.rb in statsd-instrument-2.9.1
- old
+ new
@@ -342,12 +342,12 @@
# @see #statsd_measure
def statsd_remove_distribution(method, name)
remove_from_method(method, name, :distribution)
end
- VoidClass = Class.new(BasicObject)
+ VoidClass = Class.new
private_constant :VoidClass
- VOID = VoidClass.new
+ VOID = VoidClass.new.freeze
private
def statsd_instrumentation_for(method, name, action)
unless statsd_instrumentations.key?([method, name, action])