From: John Carter Date: 2006-04-13T10:23:10+09:00 Subject: shell.rb and class << Shell I'm confuzzled. In lib/shell.rb I read... ============================================================ class Shell @RCS_ID='-$Id: shell.rb,v 1.8 2001/03/19 09:01:11 keiju Exp keiju $-' include Error extend Exception2MessageMapper # @cascade = true # debug: true -> normal debug # debug: 1 -> eval definition debug # debug: 2 -> detail inspect debug @debug = false @verbose = true class << Shell ============================================================= Question 1. Why does he use this "class << Shell" trick? What does that do? Question 2. What does Exception2MessageMapper do? Yes, I have read the comments three times, and I still don't know what it does or why. John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand Carter's Clarification of Murphy's Law. "Things only ever go right so that they may go more spectacularly wrong later." From this principle, all of life and physics may be deduced.