Jimmy Z
unread,Apr 7, 2008, 3:00:35 PM4/7/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.