More OSCON stuff

P

Phil Tomson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top