[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01933] Re: Class Variables

From: Dave Thomas <Dave@...>
Date: 2000-03-16 22:31:11 UTC
List: ruby-talk #1933
"David Douthitt" <DDouthitt@cuna.com> writes:

> Doesn't that work only in modules?  I can't find 'attr_accessor'
> and others anywhere except in the Module class.

Two answers:

1. class Class is a sub-class of class Module. (try saying that
   quickly), so everything in Module is available in Class as well.

2. it works!  ;-)


Regards


Dave

In This Thread

Prev Next