summaryrefslogtreecommitdiff
path: root/ext/ripper/lib
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-09 17:49:41 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-09 17:49:41 +0000
commit493bcc9b6475f5e2abc5548474bfac50f0fe4294 (patch)
treeed281d387c784707c2cc2382962b14ca1f278bcf /ext/ripper/lib
parent580a9e70e2a35d1c5de6632d7d434c206173e1fe (diff)
* ext/ripper/lib/ripper/filter.rb: require ripper/tokenizer.
* ext/ripper/lib/ripper/filter.rb (parse): argument is optional. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/lib')
-rw-r--r--ext/ripper/lib/ripper/filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ripper/lib/ripper/filter.rb b/ext/ripper/lib/ripper/filter.rb
index d1c7c4a..061bf10 100644
--- a/ext/ripper/lib/ripper/filter.rb
+++ b/ext/ripper/lib/ripper/filter.rb
@@ -8,7 +8,7 @@
# For details of Ruby License, see ruby/COPYING.
#
-require 'ripper/core'
+require 'ripper/tokenizer'
class Ripper
@@ -43,7 +43,7 @@ class Ripper
# Starts parsing. _init_ is a data accumulator.
# It is passed to the next event handler (as of Enumerable#inject).
- def parse(init)
+ def parse(init = nil)
data = init
@__parser.parse.each do |pos, event, tok|
@__line, @__col = *pos