Created
September 23, 2015 19:03
-
-
Save kenmazaika/2f45a9557462c0208145 to your computer and use it in GitHub Desktop.
This file contains hidden or 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' | |
| 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