Ruby: On what defining a class evaluates to

Posted by wilhelmtell on Stack Overflow See other posts from Stack Overflow or by wilhelmtell
Published on 2010-06-13T16:54:30Z Indexed on 2010/06/13 17:52 UTC
Read the original article Hit count: 143

Filed under:

In Ruby, why does defining a class evaluate to nil? Same goes for defining a method: why does it evaluate to nil? Wouldn't it be useful if defining a class would evaluate as the class?

© Stack Overflow or respective owner

Related posts about ruby