summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ripper')
-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 d1c7c4a45e..061bf109d0 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