ruby class collections

Posted by poseid on Stack Overflow See other posts from Stack Overflow or by poseid
Published on 2010-05-18T13:44:54Z Indexed on 2010/05/18 13:51 UTC
Read the original article Hit count: 304

Filed under:

how does this work?

in irb:

>> class A
>>   b = [1, 2,3]
>> end
=> [1, 2, 3]

Is b an instance variable? class variable? how would I access b from outside the class? Is it used for meta-programming?

© Stack Overflow or respective owner

Related posts about ruby