R
Robert Dober
That for sure, that was a great PITN at first!!RobertOn 4/15/07 said:I think I misspelled "initialize" a lot more.![]()
That for sure, that was a great PITN at first!!RobertOn 4/15/07 said:I think I misspelled "initialize" a lot more.![]()
assuming a is already defined
class Object; def yield; yield(self) end end
func(b).yield{|fb| a = fb if fb}
So you are proposing all undefined locals return nil too? }}![]()
I hope notPerhaps Kernel.variable_missing?
Or I'm just crazy...
I hope not, but I think this will enter in conflict with method_missing.
Robert
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.