Method: RuboCop::Cop::Lint::UselessRuby2Keywords#method_definition
- Defined in:
- lib/rubocop/cop/lint/useless_ruby2_keywords.rb
#method_definition(node, method_name) ⇒ Object
Looks for statically or dynamically defined methods with a given name
72 73 74 75 76 77 |
# File 'lib/rubocop/cop/lint/useless_ruby2_keywords.rb', line 72 def_node_matcher :method_definition, "{\n (def %1 ...)\n (any_block (send _ :define_method (sym %1)) ...)\n}\n" |