Fetches item k
from the tuple.
Iterate through the tuple, yielding the index or key, and the value, thus ensuring arrays are iterated similarly to hashes.
Matches this template against tuple
. The tuple
must be the same size as the template. An element with a nil
value in a template acts as a wildcard, matching any value in the corresponding position in the tuple. Elements of the template match the tuple
if the are ==
or ===
.
Template.new([:foo, 5]).match Tuple.new([:foo, 5]) # => true Template.new([:foo, nil]).match Tuple.new([:foo, 5]) # => true Template.new([String]).match Tuple.new(['hello']) # => true Template.new([:foo]).match Tuple.new([:foo, 5]) # => false Template.new([:foo, 6]).match Tuple.new([:foo, 5]) # => false Template.new([:foo, nil]).match Tuple.new([:foo]) # => false Template.new([:foo, 6]).match Tuple.new([:foo]) # => false
Iterates over all discovered TupleSpaces starting with the primary.
Fetches key
from the tuple.
Matches this TemplateEntry
against tuple
. See Template#match
for details on how a Template
matches a Tuple
.
Yields event/tuple pairs until this NotifyTemplateEntry
expires.
Yields each Tuple
in this AvailableSet
Delegates to @hash
Does this dependency match the specification described by name
and version
or match spec
?
NOTE: Unlike matches_spec?
this method does not return true when the version is a prerelease version unless this is a prerelease dependency.
Iterator over dependency_order
Cached RemoteFetcher
instance.
Yields each source URI
in the list.
Default fetcher instance. Use this instead of ::new
to reduce object allocation.
Enumerate every known spec. See ::dirs=
and ::add_spec
to set the list of specs.