Creating a new object from a file - Ruby
<p>I'm working on a ruby project where I have to read personal information in from a file and use that information to create a new object from a <code>Person</code> class that I created. The <code>personal_info.txt</code> file looks something like this:</p>

<pre><code>John, Doe, 53, married
AZ, 01-01-1963
</code></pre>

<p>Usually I would do something like <code>john = Person.new("John", "Doe", 53, "married", "AZ", "01-01-1963")</code> to create the object, but I can't do that. I have to read the information from the file and use that information to create the object. I know how to read the file into my program, but I have no idea how to use that information as arguments for my new <code>Person</code> object. I'm not asking for anyone to complete this for me, I just need some advice. If you guys could give me some pointers, that would be greatly appreciated.</p>