Posted about 22 hours ago
. Tagged with: Tips, TIL permalink
Sometimes we need to split a full name into first name and last name parts. In Ruby String#split is the default thinking. If the name is just two parts, like "John Doe" it'd work like breeze.