From: Tim Bates Date: 2003-01-23T22:52:53+09:00 Subject: Re: POLS (with one case: "class variable") On Fri, 24 Jan 2003 12:12 am, David Garamond wrote: > as mauricio pointed out, i was talking about "class instance variable" > (instance variable @var that is declard directly under the class > definition, not under method definition). is this somehow inherited to > subclasses too like a class variable (@@var)? It would seem not: tim@marvin:~$ cat b.rb class Foo @foo = :meep @@bar = :moop end class Bar < Foo p @foo p @@bar end class Baz < Foo def test p @foo p @@bar end end Baz.new.test tim@marvin:~$ ruby b.rb nil :moop nil :moop tim@marvin:~$ Tim Bates -- tim@bates.id.au