From: Eric Hodel Date: 2006-05-11T02:30:42+09:00 Subject: Re: range On May 10, 2006, at 12:15 AM, 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. Range#length was removed between 1.6.8 and 1.8.mumble. > 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 using ri. $ ri Range [...] Instance methods: ----------------- ==, ===, begin, each, end, eql?, exclude_end?, first, hash, include?, inspect, last, member?, step, to_s -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com