Passage
and Salmon begat Boaz, and Boaz begat Obed,
and Salmon begat Boaz, and Boaz begat Obed,
Ruth 4:19 and Hezron begat Ram, and Ram begat Amminadab,
Ruth 4:20 and Amminadab begat Nahshon, and Nahshon begat Salmon,
Ruth 4:21 and Salmon begat Boaz, and Boaz begat Obed,
Ruth 4:22 and Obed begat Jesse, and Jesse begat David.
The verse centers on "salmon", "begat", "boaz", and "obed". It is saying that the verse draws attention to "salmon" and "begat", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 20's "and Amminadab begat Nahshon and Nahshon begat..." into verse 22's "and Obed begat Jesse and Jesse begat...", so "salmon" and "begat" belong inside that flow. In Ruth context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "salmon" and "begat" with trust shaped by these words, not by a vague optimism outside the passage.