Ben Bleything wrote:
> On Tue, Sep 04, 2007, Cd Cd wrote:
>> 'b' will print out the body of the web page. So 'b' in this case would 
>> be become the receiver (ie imgs = b.scan(/<img src="(.*?)"/m)), then we 
>> go from getting the value 'b' (via p b)  to 'b' acting like a method 
>> (via imgs = b.scan(/<img src="(.*?)"/m))?
> 
> b is an object in either case.  When you 'p b', you're printing out the
> contents of the b object... when you call b.scan, you're calling scan on
> the b object.
> 
> Make more sense?
> 
> Ben

Yes it does.
-- 
Posted via http://www.ruby-forum.com/.