diff options
author | John Mair <jrmair@gmail.com> | 2011-04-11 17:48:51 +1200 |
---|---|---|
committer | John Mair <jrmair@gmail.com> | 2011-04-11 17:48:51 +1200 |
commit | 5df1cdaf6f7b5ce4406bca382b3bc048c796fd97 (patch) | |
tree | 8d86cb83bc0d589d19e567eab74dc8c1daf8b99a /lib/method_source.rb | |
parent | 67675b4bb5fe837968c582a18a12cc4cc0ca802f (diff) | |
download | method_source-5df1cdaf6f7b5ce4406bca382b3bc048c796fd97.tar.gz |
defaults to RubyParser on all 1.9 implementations except MRI
Diffstat (limited to 'lib/method_source.rb')
-rw-r--r-- | lib/method_source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/method_source.rb b/lib/method_source.rb index ef2193c..5461a52 100644 --- a/lib/method_source.rb +++ b/lib/method_source.rb @@ -8,7 +8,7 @@ require "#{direc}/method_source/source_location" module MethodSource - if RUBY_VERSION =~ /1.9/ + if RUBY_VERSION =~ /1.9/ && RUBY_ENGINE == "ruby" require 'ripper' # Determine if a string of code is a valid Ruby expression. |