2007/8/2, dblack / rubypal.com <dblack / rubypal.com>: > def number=(value) > if (1..6).include?(value) > @number = value > else > puts "A die has only six sides!" > end > end > end Interesting that you do it that way. In the light of exception handling, I would rather have done def number=(v) raise ArgumentError, "not a valid dice value: #{v}" unless (1..6).include? v @number = v end Apparently everybody has different approaches. :-) Kind regards robert