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:
parent
e129dc3051
commit
031f08af1a
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ class Pry
|
|||
Pry::MethodInfo.info_for(@method) or raise CommandError, "Cannot locate this method: #{name}. (source_location returns nil)"
|
||||
else
|
||||
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.'
|
||||
end
|
||||
raise CommandError, fail_msg
|
||||
|
|
Loading…
Reference in a new issue