module RuboCop::AST::MethodDispatchNode

def def_modifier?

Returns:
  • (Boolean) - whether the dispatched method is a `def` modifier
def def_modifier?
  send_type? &&
    [self, *each_descendant(:send)].any?(&:adjacent_def_modifier?)
end