summaryrefslogtreecommitdiff
path: root/test/ripper/dummyparser.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 05:56:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 05:56:14 +0000
commit9b68d667c71480c31ad41a8db1e111995abde73a (patch)
treee579ffdbb58ea474bb66b5abcfd39c5e3530d1a7 /test/ripper/dummyparser.rb
parent088474a20dff97f11a71c8f2f5c240bbb0283d46 (diff)
* ext/pty/pty.c (chfunc): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper/dummyparser.rb')
-rw-r--r--test/ripper/dummyparser.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ripper/dummyparser.rb b/test/ripper/dummyparser.rb
index d9bd69e..8a706b5 100644
--- a/test/ripper/dummyparser.rb
+++ b/test/ripper/dummyparser.rb
@@ -184,6 +184,14 @@ class DummyParser < Ripper
Node.new('assocs', *a)
end
+ def on_word_new
+ ""
+ end
+
+ def on_word_add(word, w)
+ word << w
+ end
+
def on_words_new
NodeList.new
end