class Rubocop::Cop::Lint::Eval
This cop checks for the use of *Kernel#eval*.
Constants
- MSG
Public Instance Methods
on_send(node)
click to toggle source
Calls superclass method
# File lib/rubocop/cop/lint/eval.rb, line 10 def on_send(node) receiver, method_name, = *node if receiver.nil? && method_name == :eval add_offence(:warning, node.loc.selector, MSG) end super end