From: ts Date: 2002-03-27T00:07:51+09:00 Subject: Re: Why is '?' OK in a method name and not OK in a variable name ? >>>>> "J" == Jean-Hugues ROBERT writes: J> class CacheEntry J> def initialize() J> @is_dirty = false J> end J> def dirty? J> return @is_dirty J> end J> end Write it like this, it will be a little faster class CacheEntry attr_reader :is_dirty alias dirty? is_dirty def initialize() @is_dirty = false end end Guy Decoux