class Flickr::ResponseList
Public Class Methods
new(h, t, a)
click to toggle source
Calls superclass method
# File lib/flickr/response_list.rb, line 6 def initialize(h, t, a); super(h, t); @a = a end
Public Instance Methods
[](k)
click to toggle source
Calls superclass method
Flickr::Response#[]
# File lib/flickr/response_list.rb, line 8 def [](k); k.is_a?(Integer) ? @a[k] : super(k) end
each() { |e| ... }
click to toggle source
# File lib/flickr/response_list.rb, line 10 def each @a.each { |e| yield e } end
inspect()
click to toggle source
# File lib/flickr/response_list.rb, line 16 def inspect; @a.inspect end
map!() { |e| ... }
click to toggle source
# File lib/flickr/response_list.rb, line 20 def map! @a = @a.map { |e| yield e } end
marshal_dump()
click to toggle source
# File lib/flickr/response_list.rb, line 24 def marshal_dump; [@h, @flickr_type, @a] end
size()
click to toggle source
# File lib/flickr/response_list.rb, line 18 def size; @a.size end
Also aliased as: length
to_a()
click to toggle source
# File lib/flickr/response_list.rb, line 14 def to_a; @a end