On 11.08.2008 17:09, Patrick Li wrote:
> So is this a correct interpretation?
> 
> Every block/closure has an associated binding.
> 
> The binding can be loosely described as
>   -a list of local variables
>   -and self.

Yep.

> Calls to instance variables are shorthand for "self.@myInstanceVariable"
> and calls to instance methods are shorthand for "self.myInstanceMethod"

Yes, apart from access control:

robert@fussel ~
$ ruby -e 'class F;private;def x;puts 111;end 
end;f=F.new;f.instance_eval { x };f.x'
111
-e:1: private method `x' called for #<F:0x1002eef4> (NoMethodError)

"private" disallows method invocation with explicit receiver.

Kind regards

	robert