require 'traits' # # multiple traits can be defined at once using a list/array of string/sybmol # arguments # class C has :t0, :t1 has %w( t2 t3 ) end obj = C::new obj.t0 = 4 obj.t3 = 2 print obj.t0, obj.t3, "\n"