T
Tom Link
If you're really finding it necessary to create a whole class and a
This referred to the example of str += "foo". I was simply elaborating
on my alternative proposal.
You'd have to make sure you are the only user of that object then,
wouldn't you? You couldn't really make such objects publicly
accessible? Could be fun to debug code that returns such objects from
a method.
method_missing apparatus to make gsub! chainable
This referred to the example of str += "foo". I was simply elaborating
on my alternative proposal.
Part of the point of the #extend
technique is that it requires pin-pointing what you actually need
You'd have to make sure you are the only user of that object then,
wouldn't you? You couldn't really make such objects publicly
accessible? Could be fun to debug code that returns such objects from
a method.