Michael Guterl wrote: > On 3/17/07, Corey Konrad <0011 / hush.com> wrote: >> end >> end >> >> animal = Animal.new > > > ArgumentError: wrong number of arguments (0 for 2) > > Your Animal.new is expecting you to pass in color and size. > > animal = Animal.new("brown", "big") > > animal.color = "brown" ah ok i understand that i am just learning all this OO stuff i just thought i needed to use the initialize method but i dont even need to create one for a default object state at all i can just do this as well and the program worked fine, class Animal attr_accessor :color attr_accessor :size end that is pretty cool i'm having a fun time learning this language compared to something like vb.net. -- Posted via http://www.ruby-forum.com/.