Method: RuboCop::Cop::Security::CompoundHash#dynamic_hash_method_definition?

Defined in:
lib/rubocop/cop/security/compound_hash.rb

#dynamic_hash_method_definition?(node) ⇒ Object



43
44
45
46
47
48
49
# File 'lib/rubocop/cop/security/compound_hash.rb', line 43

def_node_matcher :dynamic_hash_method_definition?, "(block\n  (send _ {:define_method | :define_singleton_method}\n    (sym :hash))\n  (args)\n  _)\n"