Sha256: 776dc8f365c66a51d2bd1ad262ccb134fad7b23ba2f7715c18804640d2dfdcae
Contents?: true
Size: 519 Bytes
Versions: 29
Compression:
Stored size: 519 Bytes
Contents
module VagrantPlugins module ProviderLibvirt module Util module Collection # This method finds a matching _thing_ in a collection of # _things_. This works matching if the ID or NAME equals to # `name`. Or, if `name` is a regexp, a partial match is chosen # as well. def self.find_matching(collection, name) collection.each do |single| return single if single.name == name end nil end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems