Sha256: 8b8dfc263d8f13d459647696ffca19274e31313e9deb1f83c7984422c3f8ebf4

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

module Twitter
  module Enumerable
    include ::Enumerable

    # @return [Enumerator]
    def each(start=0, &block)
      return to_enum(:each) unless block_given?
      Array(@collection[start..-1]).each do |element|
        yield element
      end
      self
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter-5.1.1 lib/twitter/enumerable.rb
twitter-5.1.0 lib/twitter/enumerable.rb
twitter-5.0.1 lib/twitter/enumerable.rb
twitter-5.0.0 lib/twitter/enumerable.rb