Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Separate new lines from an output

Reply
Thread Tools

Separate new lines from an output

 
 
Peter Hickman
Guest
Posts: n/a
 
      04-05-2011
On 5 April 2011 13:54, Robert Klemme <> wrote:
> On Tue, Apr 5, 2011 at 12:59 PM, Peter Hickman
>>> e = i.each {|i| puts ("/R/blackout/black"+i.to_s+"\n")}

>>
>> e at this point is an array


Thank you for your correction.

 
Reply With Quote
 
 
 
 
Peter Hickman
Guest
Posts: n/a
 
      04-05-2011
Ah bugger, got my cut and paste all wrong.

Thank you, Robert Klemme, for pointing out that it was a range that
was being pushed an not an array as I stated.

On 5 April 2011 14:28, Peter Hickman <> wrote:
> On 5 April 2011 13:54, Robert Klemme <> wrote:
>> On Tue, Apr 5, 2011 at 12:59 PM, Peter Hickman
>>>> e = i.each {|i| puts ("/R/blackout/black"+i.to_s+"\n")}
>>>
>>> e at this point is an array

>
> Thank you for your correction.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separate Tabs, Separate Sessions BigAndy Firefox 0 05-09-2007 09:27 AM
Separate Tabs, Separate Sessions BigAndy Firefox 0 05-09-2007 09:26 AM
Using separate classpaths for separate classes? Frank Fredstone Java 1 06-27-2006 06:46 AM
How to use several separate classes (separate files) to be executed in one class (another file) EvgueniB Java 1 12-15-2003 01:18 AM
Re: how to read 10 lines from a 200 lines file and write to a new file?? Joe Wright C Programming 0 07-27-2003 08:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57