Methods

Included Modules

Class/Module Index [+]

Quicksearch

Twitter::Enumerable

Public Instance Methods

each(start = 0) click to toggle source

@return [Enumerator]

# File lib/twitter/enumerable.rb, line 6
def each(start = 0)
  return to_enum(:each, start) unless block_given?
  Array(@collection[start..-1]).each do |element|
    yield(element)
  end
  unless last?
    start = [@collection.size, start].max
    fetch_next_page
    each(start, &Proc.new)
  end
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.