From: Robert Klemme Date: 2006-09-30T17:45:20+09:00 Subject: Re: quick question: continuing Ruby methods on different line ara.t.howard@noaa.gov wrote: > On Sat, 30 Sep 2006, Eric Gross wrote: > >> If you have a long method call like: >> >> >> some.long.method.call >> >> how can i make it >> >> some.long (next line) >> .method.call You just need to place the dot in the first line: some.long. method.call Or you have to escape the line ending some.long\ .method.call > harp:~ > cat a.rb > p Time\ > now > > harp:~ > ruby a.rb > Fri Sep 29 20:59:45 MDT 2006 How did you get that to work? I think you're missing a point here. :-) $ ruby < puts Time\ > now > XXX -:1: uninitialized constant Timenow (NameError) But these work $ ruby < puts Time. > now > XXX Sat Sep 30 10:42:14 GMT+1:00 2006 $ ruby < puts Time\ > .now > XXX Sat Sep 30 10:43:18 GMT+1:00 2006 Kind regards robert