In the book of Ruth, Boaz, a kinsman of Ruth's deceased husband, plays a crucial role. What specific legal and cultural practice, outlined in the Law of Moses, did Boaz fulfill in relation to Ruth and Naomi, ensuring the continuation of their family line and inheritance?