lib/spoom/deadcode/definition.rb in spoom-1.2.4 vs lib/spoom/deadcode/definition.rb in spoom-1.3.0
- old
+ new
@@ -91,8 +91,19 @@
sig { void }
def ignored!
@status = Status::IGNORED
end
+
+ # Utils
+
+ sig { params(args: T.untyped).returns(String) }
+ def to_json(*args)
+ {
+ kind: kind,
+ name: name,
+ location: location.to_s,
+ }.to_json
+ end
end
end
end