Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Undef source_index safely

  • Loading branch information...
commit 8406cd7ada637a0eda4c17429dd2e4caf3d06902 1 parent c2f276c
@lsegal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/yard/rubygems/backports/gem.rb
2  lib/yard/rubygems/backports/gem.rb
@@ -1,6 +1,6 @@
module Gem
class << self
- undef source_index
+ undef source_index if method_defined?(:source_index)
# Returns the Gem::SourceIndex of specifications that are in the Gem.path
def source_index
@@source_index ||= SourceIndex.from_installed_gems
Please sign in to comment.
Something went wrong with that request. Please try again.