Mega Code Archive

 
Categories / Ruby / String
 

Substituting Variables Into an Existing String

template = 'O with %s.' puts template % 'E'