From d32e2bb02d15008da008057fbd6b541662d52588 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 24 May 2020 20:12:32 +0900 Subject: [PATCH] Allow references to $$ in Ripper DSL --- ext/ripper/tools/dsl.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb index d2b9715a71..49ff51711f 100644 --- a/ext/ripper/tools/dsl.rb +++ b/ext/ripper/tools/dsl.rb @@ -7,6 +7,9 @@ # v2 = dispatch0(void_stmt); # $$ = dispatch2(stmts_add, v1, v2); +$dollar = "$$" +alias $$ $dollar + class DSL def initialize(code, options) @events = {}