Subject: Re: Creating a ruby class with mass assignment
From: Rupert Voelcker <rupert rupespad.com>
Date: Fri, 30 Jan 2009 21:41:46 +0900
References: 326253
In-reply-to: 326253
> What is the best way of achieving mass assignment whilst still allowing
> to initialize without parameters?
def initialize(args = {})
args.keys.each { ....... }
end