-
-
Save chrisseaton/f38ad4143a8fc6dc40cdcaf38aec1daf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'erb' | |
x = 42 | |
template = ERB.new <<-EOF | |
The value of x is: <%= x %> | |
EOF | |
loop do | |
puts template.result(binding) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment