The line "When the road was a gypsy ribbon" is a metaphor. It directly compares the road to a gypsy ribbon without using "like" or "as." The comparison evokes the road's long, winding, and perhaps colorful or free-spirited nature, much like a ribbon blowing in the wind.