1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Check for any mri version in Pry::Method#pry_doc_info

This commit is contained in:
Danielle Sucher 2013-09-06 06:27:29 -07:00
parent e129dc3051
commit 031f08af1a

View file

@ -473,7 +473,7 @@ class Pry
Pry::MethodInfo.info_for(@method) or raise CommandError, "Cannot locate this method: #{name}. (source_location returns nil)" Pry::MethodInfo.info_for(@method) or raise CommandError, "Cannot locate this method: #{name}. (source_location returns nil)"
else else
fail_msg = "Cannot locate this method: #{name}." fail_msg = "Cannot locate this method: #{name}."
if mri_18? || mri_19? || mri_20? if mri?
fail_msg += ' Try `gem-install pry-doc` to get access to Ruby Core documentation.' fail_msg += ' Try `gem-install pry-doc` to get access to Ruby Core documentation.'
end end
raise CommandError, fail_msg raise CommandError, fail_msg