New feature on person.add_name

0 views
Skip to first unread message

Jimmy Z

unread,
Apr 7, 2008, 3:00:35 PM4/7/08
to Ruby-fs-api
Adding a name in its full form can be a pain, requiring adding a new
name form to a name assertion, adding, pieces elements to a piece
element with all of the pieces filled in.

The ruby-fs-api has simplified this by allowing // in the add_name
method on a Person object.

Example:

person = FamilyTreeApi::Person::Base.new
person.add_name 'John Jacob /Jingleheimer Schmidt/'

will add a new "name" assertion to the person with a new "form" and
pieces of John => Given, Jacob => Given, Jingleheimer => Family,
Schmidt => Family and full_text of John Jacob Jingleheimer Schmidt.

This also allows you to enter people with no family name such as "John
Lee //" Which would indicate that John and Lee are both given names
and no family name is known.
Reply all
Reply to author
Forward
0 new messages