lib/yard/rubygems/backports/gem.rb in yard-0.9.18 vs lib/yard/rubygems/backports/gem.rb in yard-0.9.19

- old
+ new

@@ -1,10 +1,10 @@ -# frozen_string_literal: true -module Gem - class << self - 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 - end - end -end +# frozen_string_literal: true +module Gem + class << self + 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 + end + end +end