lib/spoom/deadcode/plugins/ruby.rb in spoom-1.4.2 vs lib/spoom/deadcode/plugins/ruby.rb in spoom-1.5.0
- old
+ new
@@ -32,9 +32,12 @@
last_arg = send.args.last
if last_arg.is_a?(Prism::SymbolNode) || last_arg.is_a?(Prism::StringNode)
@index.reference_method(last_arg.unescaped, send.location)
end
+ when "method"
+ arg = send.args.first
+ @index.reference_method(arg.unescaped, send.location) if arg.is_a?(Prism::SymbolNode)
end
end
private