class 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 43 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 49 def next @mutex.synchronize do @index += 1 return @array[@index - 1] end end