[TxMt] Spreadsheets in Textmate

James Edward Gray II james at grayproductions.net
Mon Apr 24 12:56:02 UTC 2006

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
   def method_missing( meth, *args, &block )
     @cells.send(meth, *args, &block)
   # ...

Hope that helps.

James Edward Gray II

More information about the textmate mailing list