lib/ruby-metrics/instruments/base.rb in ruby-metrics-0.8.5 vs lib/ruby-metrics/instruments/base.rb in ruby-metrics-0.8.6
- old
+ new
@@ -4,11 +4,15 @@
def to_i
raise NotImplementedError
end
- def to_s
+ def to_json(*_)
raise NotImplementedError
+ end
+
+ def to_s
+ self.to_json
end
def to_f
raise NotImplementedError
end