Skip to content

Commit 09f06c0

Browse files
authored
Sourcebase_ScriptStarter_V1.09.rb
Version 1 of the Ruby web template. Version number is dectupled (10x) to match HTML version.
1 parent 70b1e96 commit 09f06c0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Start of script
2+
runtime1 = 1;
3+
while (runtime1 == 1):
4+
puts "Hello world";
5+
# Ruby web template (Ruby Sourcebase 1.09)
6+
puts "Ruby web template";
7+
puts "Sourcebase 1.09 (Ruby)";
8+
# Generate a random number and print whether it's even or odd.
9+
if rand(100).even?
10+
puts "It's even"
11+
else
12+
puts "It's odd"
13+
end
14+
'''
15+
<rt><rb></rb></rt>
16+
'''
17+
end
18+
# File version: 1 (January 7th 2020)
19+
'''
20+
First version: 1 (January 7th 2020)
21+
'''
22+
# End of script

0 commit comments

Comments
 (0)