Maybe I miss something. But I am confused about method call within a
class. What is the format for that? I just copy some code segments from
the forum as follows:
i = 0
each do |elem|
yield elem, i
i += 1
size.times do |i|
yield self[i], i
- which one is the reciever for “each”?
- which one is the reciever for “size”?
Do they default to self?