On Thu, Dec 4, 2008 at 4:56 PM, Pat Maddox <[EMAIL PROTECTED]> wrote:

> class Foo
>  @class_instance_variable = "blah"
>
>  def foo
>    puts @class_instance_variable
>  end
> end
>
> Foo.foo will print nothing, because @class_instance_variable is nil in
> the object instance.
>


I don't know if it matters here, but you can define a class method to return
a class instance variable.

///ark
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to