From: Guest Date: 2006-05-10T17:07:08+09:00 Subject: Re: range corey konrad wrote: > another code example from my book doesnt work with the ruby interpreter > > parts = ("Part A" .. "Part G") > parts.length #–> 7 > > that spits out a error that says it doesnt recognize the length method. > > I realize this question is pretty simple but i am a begining programmer. > I am really enjoying the response time in this forum, i usually get a > response in about 5 minutes any time of day :D Try with [ brackets ] parts = ["Part A" , "Part B", "Part G"] p parts.length #–> 7 Ytoba -- Posted via http://www.ruby-forum.com/.