Class: Gem::Package::TarReader

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_library/util/patches.rb

Instance Method Summary collapse

Instance Method Details

#findObject

Old versions of RubyGems don’t include Enumerable in here



100
101
102
103
104
105
106
# File 'lib/puppet_library/util/patches.rb', line 100

def find
    each do |entry|
        if yield(entry)
            return entry
        end
    end
end