From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2003-07-13T03:23:50+09:00 Subject: More OSCON stuff Check out the slides for Michael Granger and David McCorkhill's "Data-Driven Classes in Ruby" at: http://www.rubycrafters.com/ Lots of intersting Ruby code in these slides, like: Class::new( Adapter ) { @dbh = dbh; @table = table; @primaryKey = pkey class << self attr_reader :dbh, :table, :primaryKey end } .... that's gnarly ( I mean in a good way :) I didn't know that Class::new took a block in 1.8 (anyone know where I can find docs on this, didn't find anything on the wiki). Phil