Okay, I'm too tired...

On Wed, 04 Jan 2006 00:58:08 -0000, Ross Bamford  
<rosco / roscopeco.remove.co.uk> wrote:

> They are local. I think that test is referring to this:
                                ^^^^
That should be 'text'

> An interesting aside to this (IMHO) is this:
>
> 	irb(main):018:0> class Demo
> 	irb(main):019:1>   def last=(arg)
> 	irb(main):020:2>     (@last ||= []) << arg
> 	irb(main):021:2>   end		
> 	irb(main):022:1>   def all
> 	irb(main):023:2>     @last
> 	irb(main):024:2>   end
> 	irb(main):025:1> end
> 	=> nil
>
> 	irb(main):026:0> d = Demo.new
> 	=> #<Demo:0xb7f49a6c>
> 	irb(main):027:0> ['one','two','three'].each { |d.last| }
> 	=> ["one", "two", "three"]
> 	irb(main):028:0> d.last	
                          ^^^^	
And that should be:

	irb(main):028:0> d.all

> 	=> ["one", "two", "three"]

That'll teach me to refactor in Opera...

-- 
Ross Bamford - rosco / roscopeco.remove.co.uk