File indexing completed on 2024-05-19 04:38:18

0001 def foo a, b
0002   a + b
0003 end
0004 
0005 def alone
0006   3
0007 end
0008 
0009 a = [1, (b = foo 1, 2), 3]
0010 b = [foo(1, 2), 2]
0011 c = [alone, foo(1, 2), d = a] # Warning: 'alone' detected as object
0012 a = [1, (puts 1, 2), 2]
0013 e = [(f, g = 1, 2), 3]
0014 h = [(i, = 1, 2, 3), 4]
0015 j = [1 + 3, 'string''another''one']
0016 k = [[1, 2, 3], [[1, 2], [1, 2]], {'asd' => 1 }]
0017 
0018 x = [1, 2, 4]
0019 y = [[1, 2], [[1, 2], [3, 4]]]
0020 x[0] = y[0][alone] + y[1][1][0]
0021 
0022 a = [
0023   1, 2 ]
0024 a = [
0025   1,
0026   2]
0027 a = [
0028   1,
0029   2
0030 ]
0031 
0032 %w{one two three}
0033 %w(one two three)
0034 %w<one two three>
0035 %w[one two three]
0036 
0037 %w[ HTML HEAD BODY P PLAINTEXT DT DD LI OPTION tr
0038           th td ]
0039 %w[one two three]
0040 %w$Revision: 26193 $