From: Dark Ambient Date: 2006-06-24T20:11:26+09:00 Subject: Missing parantheses maybe ? Trying to do some fancy formatting and getting an error message. Since I know .center is a method the error message can't be the ultimate truth. Anyone ? Table of Contents <------This is corect toc.rb:8: undefined method `center' for [2]:Array (NoMethodError) >Exit code: 1 toc = ['Table of Contents', 'Chapter 1', 'Getting Started', 'page 1', 'Chapter 2', 'Numbers', 'page 9', 'Chapter 3', 'Letter', 'page 13'] line_width = 70 puts( toc[0].center(line_width)) puts( toc[1].ljust(line_width/2) + [2].center(line_width) +[3].rjust(line_width/2)) puts( toc[4][5][6]) puts( toc[7][8][9]) Tia Stuart