[TxMt] Spreadsheets in Textmate

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


On Apr 24, 2006, at 6:11 AM, Domenico Carbotta wrote:

>> Gotta love the nomenclature, too ;-:).
>
> it might stink, but it works :)

Works just fine in Ruby too, without ugly methods:  ;)

class SpreadSheet
   def initialize( rows )
     @cells = rows
   end
   def []( x, y )
     @cells[y][x]
   end
   def []=( x, y, value )
     # do your cell adding here...
     @cells[y][x] = value
   end
end

James Edward Gray II



More information about the textmate mailing list