C
Cheryl M.
class String
remove_methodeach)
end
class Object
def reach
if(x.respond_to?each))
self.each{|x| x.reach(yield)}
else
yield(self)
end
end
end
This is my code.. I keep getting the error that it can't find the local
variable 'x' .... why???
remove_methodeach)
end
class Object
def reach
if(x.respond_to?each))
self.each{|x| x.reach(yield)}
else
yield(self)
end
end
end
This is my code.. I keep getting the error that it can't find the local
variable 'x' .... why???