Skip to content

Latest commit

 

History

History
executable file
·
18 lines (11 loc) · 403 Bytes

README.md

File metadata and controls

executable file
·
18 lines (11 loc) · 403 Bytes

fullname_parser

There are two ways to use this function:

require 'fullname/parser' Fullname::Parser.parse_fullname("Xiaohui Zhang")

=> {:last=>"Zhang", :middle=>nil, :first=>"Xiaohui", :prefix=>nil, :suffix=>nil}

or

require 'fullname/parser' include Fullname::Parser parse_fullname("Xiaohui Zhang")

=> {:last=>"Zhang", :middle=>nil, :first=>"Xiaohui", :prefix=>nil, :suffix=>nil}