Parent

Methods

Files

Class/Module Index [+]

Quicksearch

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
# File lib/rubocop/cop/lint/eval.rb, line 9
def on_send(node)
  receiver, method_name, = *node

  add_offense(node, :selector) if receiver.nil? && method_name == :eval
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.