Method: RuboCop::Cop::InternalAffairs::RedundantMethodDispatchNode#dispatch_method

Defined in:
lib/rubocop/cop/internal_affairs/redundant_method_dispatch_node.rb

#dispatch_method(node) ⇒ Object



36
37
38
39
40
41
# File 'lib/rubocop/cop/internal_affairs/redundant_method_dispatch_node.rb', line 36

def_node_matcher :dispatch_method, "{\n  (send $(send _ :send_node) {:method_name :receiver})\n  (send $(send _ :send_node) :method? _)\n}\n"