instance method String#interpolate

View source on GitHub →

String#interpolate(object[, pattern]) → String

Treats the string as a Template and fills it with object's properties.