Format strings dynamically in ruby
#TIL you can format strings dynamically and neatly with:
puts "%s is at %s" % [
'John',
'Singapore'
]
=> John is at Singapore
Reference:
#TIL you can format strings dynamically and neatly with:
puts "%s is at %s" % [
'John',
'Singapore'
]
=> John is at Singapore
Reference: