class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler
def compile_args(arg_list, first: nil)
-
(String, nil)
-
Parameters:
-
(
Array
) --, nil
def compile_args(arg_list, first: nil) args = arg_list&.map { |arg| compiler.compile_as_atom(arg) } args = [first, *args] if first "(#{args.join(', ')})" if args end