Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::Extra::Checking::Checks::ExternalLinks::ArrayEnumerator

Public Class Methods

new(array) click to toggle source
# File lib/nanoc/extra/checking/checks/external_links.rb, line 47
def initialize(array)
  @array = array
  @index = 0
  @mutex = Mutex.new
end

Public Instance Methods

next() click to toggle source
# File lib/nanoc/extra/checking/checks/external_links.rb, line 53
def next
  @mutex.synchronize do
    @index += 1
    return @array[@index-1]
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.