New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String interpolation with named parameters #678

Closed
davispuh opened this Issue Jan 3, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@davispuh
Contributor

davispuh commented Jan 3, 2015

puts "Time: %{time}" % {time: Time.now}
puts "Time: %{time}" % {:time => Time.now}

Opal currently doesn't interpolate it and will output "Time: %{time}" literally.

@vais

This comment has been minimized.

Show comment
Hide comment
@vais

vais Apr 29, 2015

Contributor
Contributor

vais commented Apr 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment