From: ts Date: 2002-09-08T18:25:13+09:00 Subject: Re: Class defined? given symbol >>>>> "T" == Tom Sawyer writes: T> defined?(:Array) # --> true ^ | the first character is a capital letter ==> this is a constant pigeon% ruby -e 'p Object.const_defined?(:Array)' true pigeon% or Object.const_defined?(:Array) && Object.const_get(:Array).type == Class be carefull with this pigeon% ruby -e 'p Object.const_defined?("File::Stat")' false pigeon% pigeon% ruby -e 'p File.const_defined?("Stat")' true pigeon% Guy Decoux