I would like to have a class and some attributes which you can either set during initialization or use its default value.
class Fruit attr_accessor :color,
class Fruit attr_accessor :color, :type def initialize *args @color, @type = args end end pear = Fruit.new 'green', :pear