From: Brian Candler Date: 2011-08-05T01:53:45+09:00 Subject: Re: Kernel.load and local scope Mark Beek wrote in post #1014954: > "There are *exactly* three places where a program leaves the previous > scope behind and opens a new one: > > Class definitions > Module definitions > Methods" That's not exactly true as written either, since you *can* define classes and methods without starting a new scope. x = 1234 Foo = Class.new do define_method(:bar) do puts x end end puts Foo.new.bar Hence why I said "class definitions introduced by the 'class' keyword" etc. -- Posted via http://www.ruby-forum.com/.