Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2316

Separate new lines from an output

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail
From "Leo M." <leo.mmcm@gmail.com>
Newsgroups comp.lang.ruby
Subject Separate new lines from an output
Date Tue, 5 Apr 2011 04:30:42 -0500
Organization Service de news de lacave.net
Lines 19
Message-ID <d631fa1427d24cffc6f83fbb735b4c84@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1301996392 8598 65.111.164.187 (5 Apr 2011 09:39:52 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Tue, 5 Apr 2011 09:39:52 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 380977
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <d631fa1427d24cffc6f83fbb735b4c84@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:2316

Show key headers only | View raw


Hello!

I've got this problem:

I've a range from 1..87.

I've got how to print 87 lines.

I'm trying to make 87 different objects, since if i try to push this
result into an array, the array.size is always 1. How could I have 87
different objects to push in an array?

Thanks a lot for your help!

L

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Separate new lines from an output "Leo M." <leo.mmcm@gmail.com> - 2011-04-05 04:30 -0500
  Re: Separate new lines from an output Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 04:44 -0500
  Re: Separate new lines from an output Haruka YAGNI <hyagni@gmail.com> - 2011-04-05 04:47 -0500
  Re: Separate new lines from an output botp <botpena@gmail.com> - 2011-04-05 05:02 -0500
  Re: Separate new lines from an output "Leo M." <leo.mmcm@gmail.com> - 2011-04-05 05:38 -0500
    Re: Separate new lines from an output Peter Hickman <peterhickman386@googlemail.com> - 2011-04-05 05:59 -0500
      Re: Separate new lines from an output Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 07:54 -0500
        Re: Separate new lines from an output Peter Hickman <peterhickman386@googlemail.com> - 2011-04-05 08:28 -0500
          Re: Separate new lines from an output Peter Hickman <peterhickman386@googlemail.com> - 2011-04-05 08:29 -0500
    Re: Separate new lines from an output Josh Cheek <josh.cheek@gmail.com> - 2011-04-05 06:36 -0500
    Re: Separate new lines from an output Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-04-05 07:33 -0500
  Re: Separate new lines from an output "Leo M." <leo.mmcm@gmail.com> - 2011-04-05 07:07 -0500

csiph-web