Methods

Included Modules

Class/Module Index [+]

Quicksearch

Twitter::Enumerable

Public Instance Methods

each(start = 0, &block) click to toggle source

@return [Enumerator]

# File lib/twitter/enumerable.rb, line 6
def each(start = 0, &block)
  return to_enum(:each) 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, &block)
  end
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.