The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Ruby class variable scope

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Piotr Banasik

Posts: 8
Nickname: piotr
Registered: Mar, 2005

Piotr Banasik is a ruby programmer
Ruby class variable scope Posted: Mar 16, 2005 1:58 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Piotr Banasik.
Original Post: Ruby class variable scope
Feed Title: T-P-L.com Blog/Ruby
Feed URL: http://t-p-l.com/wordpress/wp-rss2.php?cat=11
Feed Description: My Random Ruby Ramblings
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Piotr Banasik
Latest Posts From T-P-L.com Blog/Ruby

Advertisement
I've come across something interesting in Ruby to watch out for. The short version is: be carefull using @@name variables, because they may not be what you think. Let's look a sample scenario. You have a User class, and you extend it with diffrent privilages, for example AdminUser, GuestUser. Since the privilages ...

Read: Ruby class variable scope

Topic: A week worth of updates Previous Topic   Next Topic Topic: Why I don't have a cell phone

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use