Permalink
Browse files

Merge pull request #574 from eregon/fix_respond_to_protected

Make respond_to? usage compatible with ruby 2.0.0dev
  • Loading branch information...
lsegal committed Aug 6, 2012
2 parents 6e3c9c0 + 6098ce0 commit 63199dc2dfc6e26819243c9bda4675942a455637
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/yard/server/library_version.rb
@@ -162,7 +162,7 @@ def eql?(other)
def prepare!
return if yardoc_file
meth = "load_yardoc_from_#{source}"
- send(meth) if respond_to?(meth)
+ send(meth) if respond_to?(meth, true)
end
# @return [Gem::Specification] a gemspec object for a given library. Used
@@ -220,7 +220,7 @@ def source_path_for_gem
def load_source_path
meth = "source_path_for_#{source}"
- send(meth) if respond_to?(meth)
+ send(meth) if respond_to?(meth, true)
end
end
end

0 comments on commit 63199dc

Please sign in to comment.