module RuboCop::AST::MethodDispatchNode

def macro_kwbegin_wrapper?(parent)

Returns:
  • (Boolean) - true if the parent is a kwbegin in a macro scope

Parameters:
  • parent (Node) -- parent of the node being checked
def macro_kwbegin_wrapper?(parent)
  parent.kwbegin_type? && macro_scope?(parent)
end