0a9428093c
git-subtree-dir: RubyFun git-subtree-mainline:a04a502787
git-subtree-split:b01c682613
12 lines
343 B
Plaintext
12 lines
343 B
Plaintext
<h1>Several increasingly silly ways of displaying “Hello world!”:</h1>
|
|
|
|
<p><%= "Hello world!" %></p>
|
|
<p><%= "Hello" + " world!" %></p>
|
|
<p><%= w = "world"
|
|
"Hello #{w}!" %></p>
|
|
<p><%= 'H' + ?e.chr + ('l' * 2) %><%= ('o word!').gsub('d', 'ld')%></p>
|
|
|
|
<% hello = "Hello" %>
|
|
<% world = "world!" %>
|
|
<%= hello %> <%= world %>
|