On Apr 24, 2006, at 7:43 AM, Charilaos Skiadas wrote:
I don't exactly want to override it, I do want to call it eventually, just under some preliminary work.
Just delegate all the methods, then override as needed:
class SpreadSheet instance_methods.each { |m| undef_method m unless m =~ /^__/ } def initialize( cells ) @cells = cells end def method_missing( meth, *args, &block ) @cells.send(meth, *args, &block) end # ... end
Hope that helps.
James Edward Gray II