Sha256: 6a8ffe3c461250a1d5d59e48b3c1eda872b0fe1e94bf29b25db5ad91eb284f6a
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
# frozen_string_literal: true # Backward compatability for gem specification lookup # @see Gem::SourceIndex module YARD module GemIndex module_function def find_all_by_name(*args) if defined?(Gem::Specification) && Gem::Specification.respond_to?(:find_all_by_name) Gem::Specification.find_all_by_name(*args) else Gem.source_index.find_name(*args) end end def each(&block) if defined?(Gem::Specification) && Gem::Specification.respond_to?(:each) Gem::Specification.each(&block) else Gem.source_index.find_name('').each(&block) end end def all each.to_a end end end
Version data entries
5 entries across 4 versions & 3 rubygems