I’m hoping someone can help me with a query I have about the methods ‘center’, ‘ljust’ and ‘rjust’, covered on page 31.
Why is there a parenthesis after the puts method? for example, there’s a line which reads as: ‘puts( ‘Old Mother Hubbard’.center(line_width))’
When I did the following, I got the same output in my terminal: ‘puts ‘Old Mother Hubbard’.center(line_width)’
I thought it may be needed for the aesthetic spacing but noticed it was also used on the justify examples.
If anyone could shed any light on this that would be great, probably something obvious I’m missing.