Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created September 23, 2015 19:03
Show Gist options
  • Save kenmazaika/2f45a9557462c0208145 to your computer and use it in GitHub Desktop.
Save kenmazaika/2f45a9557462c0208145 to your computer and use it in GitHub Desktop.
require 'erb'
puts "What's your name"
name = gets.chomp
str = <<-ENDCHARS
Hello there <%= name%>,
I hope you're well!
Cheers,
Ken
ENDCHARS
erb = ERB.new(str)
puts erb.result
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment