I came across this syntax error:
syntax error, unexpected (arg, expecting end-of-input)
larguraDaLinha = 40
str = '--> text <--'
puts str.ljust larguraDaLinha
puts str.center larguraDaLinha
puts str.rjust larguraDaLinha
puts str.ljust (larguraDaLinha/2) + str.rjust (larguraDaLinha/2)