From: "David A. Black" Date: 2004-11-29T13:34:24+09:00 Subject: Re: Seeking advice on some method names Hi -- On Mon, 29 Nov 2004, Sam Stephenson wrote: > On Mon, 29 Nov 2004 11:31:06 +0900, Gavin Sinclair > wrote: > > Class.get_class > > Class.get_class("Test::Unit") -> Test::Unit > > Class.get_class("not-a-class") -> exception > > > > # Should 'get_class' be in Class or in Kernel? > > Why not String? > "Test::Unit".to_class # => Test::Unit > > My justification: it's analogous to String#to_sym. I'm not sure what either of these adds to const_get -- or, to put it another way, why there should be a special method to do (essentially) a const_get only for strings that represent class names. David -- David A. Black dblack@wobblini.net