Changes between Version 2 and Version 3 of SummaryRuby
- Timestamp:
- Jan 14, 2014, 9:00:05 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SummaryRuby
v2 v3 33 33 # whole, not by the instance of the objects, useful for store 34 34 # information relevant to all objects of the same class 35 # 36 # WARNING: there's an important side-effect behaviour important to consider: http://www.railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/ 35 37 if defined?(@@number_of_squares) 36 38 # variable already exists for all objects when the first one is created