Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str = "this is a template string with a %{placeholder} in it"
- puts str % { "placeholder": "piece of text" }
- # => this is a template string with a piece of text in it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement