Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc3::Extra::Validators::Links::EachPairEnumerator

This class is a helper class, which means that it is not used directly by nanoc. Future versions of nanoc may no longer contain this class. Do not depend on this class to be available.

Public Class Methods

new(hash) click to toggle source
# File lib/nanoc3/extra/validators/links.rb, line 160
def initialize(hash)
  @hash             = hash
  @unprocessed_keys = @hash.keys.dup
  @mutex            = Mutex.new
end

Public Instance Methods

next_pair() click to toggle source
# File lib/nanoc3/extra/validators/links.rb, line 166
def next_pair
  @mutex.synchronize do
    key = @unprocessed_keys.shift
    return (key ? [ key, @hash[key] ] : nil)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.