From: 7stud -- Date: 2011-07-22T17:36:07+09:00 Subject: Re: create object by reflection Brian Candler wrote in post #1012354: > > Or if you want to call 'build' with a variable number of args: > > def build(instance,clazz,*args) > @instances[instance] = Object.const_get(clazz).new(*args) > end > `initialize': wrong number of arguments (3 for 2) (ArgumentError) -- Posted via http://www.ruby-forum.com/.