From: ts Date: 2002-11-09T20:12:57+09:00 Subject: Re: [FAQ] Why use 'include' >>>>> "E" == Eric Schwartz writes: E> All this takes effect in the most restrictive lexical scope E> available. If you do this inside a class definition, only that E> class will be able to use the short forms. If you do it inside E> another module definition, the entire module can use those short E> forms. [ true? false? I'm not sure about this one. -- eric ] If E> you do it at the top of a file, everything in that file can use the E> short forms. Well, I've not understood what you are trying to say. Can you explain what is "the most restrictive lexical scope available" ? pigeon% cat c.rb module M class A end end include M pigeon% pigeon% cat b.rb #!/usr/bin/ruby require 'c' p A.new pigeon% pigeon% b.rb # pigeon% Guy Decoux