globals/parenless_method.rb

tests/_examples/globals/parenless_method.rb in the metorex repository.

a = [1, 2]
a.push 3
a.unshift 0
puts a.length
puts a[0]
puts a[3]

Output:

4
0
3