class Yt::Models::Iterator
@private If we dropped support for Ruby 1.9.3, then we could simply use Enumerator which takes a `size` parameter in Ruby >= 2.
Public Class Methods
new(size=nil, &block)
click to toggle source
Calls superclass method
# File lib/yt/models/iterator.rb, line 7 def initialize(size=nil, &block) RUBY_VERSION < '2' ? super(&block) : super(size, &block) end
Public Instance Methods
size()
click to toggle source
Calls superclass method
# File lib/yt/models/iterator.rb, line 11 def size RUBY_VERSION < '2' ? count : super end