lib/fasterer/parser.rb in fasterer-0.1.12 vs lib/fasterer/parser.rb in fasterer-0.2.0
- old
+ new
@@ -3,9 +3,9 @@
module Fasterer
class Parser
PARSER_CLASS = RubyParser
def self.parse(ruby_code)
- PARSER_CLASS.new.parse(ruby_code)
+ PARSER_CLASS.for_current_ruby.parse(ruby_code)
end
end
end