Todd Benson wrote:
> On 7/19/07, Chung Chung <bkeh12 / gmail.com> wrote:
>> Hi all,
>>
>>    module A
>>    end
>>    A.autoload(:B, "b")
>>    A::B.doit            # autoloads "b"
>>
>> result :
>>   uninitialized constant A::B (NameError)
> 
> Do you have a file named "b"?

Hi,

Yes, I have.

A.autoload?(:B)    # "b"


-- 
Posted via http://www.ruby-forum.com/.