Skip to content

Commit 1de9d1b

Browse files
committed
assignment task schneems#1 completed
1 parent c31e16a commit 1de9d1b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

erb_example.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22

33
x = 42
44
template = ERB.new "The value of x is: <%= x %>"
5+
puts template.result(binding)
6+
7+
name = 'eric'
8+
template = ERB.new "Hello <%= name %>!"
9+
puts template.result(binding)
10+
11+
cars = ['toyota', 'honda', 'kia', 'bmw']
12+
template = ERB.new "A list of car brands: <%= cars %>"
513
puts template.result(binding)

0 commit comments

Comments
 (0)