Creating a Class 'Value' in Ruby