summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:01 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-20 05:39:01 (GMT)
commitb54f2addaaa69a3f8588200d1e9e933738398c6d (patch)
treea2fb422a3820256440c841657e9dea84ddfa55b3 /ext/ripper
parent23830ab9b27242c06b48075f1b9cd76f941b6cd1 (diff)
dsl.rb: const_missing
* ext/ripper/tools/dsl.rb (DSL.const_missing): define to expand Qnil and Qundef as-is. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/tools/dsl.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/ripper/tools/dsl.rb b/ext/ripper/tools/dsl.rb
index ce7501b..848bd2f 100644
--- a/ext/ripper/tools/dsl.rb
+++ b/ext/ripper/tools/dsl.rb
@@ -47,5 +47,9 @@ class DSL
"#{ event }(#{ args.join(", ") })"
end
end
+
+ def self.const_missing(name)
+ name
+ end
end