From: Shannon Fang Date: 2002-12-01T02:17:08+09:00 Subject: Re: Ruby Document Thanks Ts. Still not sure. Please read below: >S> - class Unlock < ::Net::NetPrivate::HTTPRequest >S> Q: what is the :: before Net mean? > > This mean that Net is a top level constant Can I omit this ::? Is it valid to omit it? or it has a "namespace" impact? When should I use :: at top level? >S> - define_http_method_interface :PropFind, true, true >S> Q: what is the : before PropFind mean? > > To say that it's a symbol What is a symbol? what is the difference between symbol and variable? Can you tell me where in the document I can find the usage of symbole and :name notation? >S> - def HTTP.get( addr, path, port = nil ) >S> Q: difference between HTTP.get and HTTP#get? I vaguely know there are a >S> notation of class method and instance method, but which is which? and > > HTTP::get is a class method It seems HTTP#get is a class method? or if not? what is the symbol # mean, in method definition? Tks. Shannon _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail