We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c31e16a commit 71bf3cbCopy full SHA for 71bf3cb
1 file changed
erb_example.rb
@@ -1,5 +1,7 @@
1
require 'erb'
2
-
3
-x = 42
4
-template = ERB.new "The value of x is: <%= x %>"
5
-puts template.result(binding)
+x = ['2','3','99999999999999']
+y=x.count
+n = ERB.new "The value of x is: <%= x %>"
+puts n.result(binding)
6
+m = ERB.new "The number of numbers in this array is: <%= y %>"
7
+puts m.result(binding)
0 commit comments