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


Groups > comp.lang.ruby > #6774

Re: Need help with something very simple

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!newsfeed.in-ulm.de!not-for-mail
From Christian Neukirchen <chneukirchen@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: Need help with something very simple
Date Thu, 21 Mar 2013 17:55:30 +0100
Organization [ posted via ] IN-Ulm
Lines 17
Sender chris@juno
Message-ID <87a9pwd75p.fsf@gmail.com> (permalink)
References <3e2ec553-ee7d-4625-8e2d-4d2687a165ad@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
X-Trace news.in-ulm.de B0E82A6059BF9604877FBFB7F41113C4
In-Reply-To <3e2ec553-ee7d-4625-8e2d-4d2687a165ad@googlegroups.com> (Jatin Ganhotra's message of "Thu, 21 Mar 2013 08:39:32 -0700 (PDT)")
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Xref csiph.com comp.lang.ruby:6774

Show key headers only | View raw


Jatin Ganhotra <jatin.ganhotra@gmail.com> writes:

> Hi,
>
> 1.9.3p194 :005 > array = [ 1, 2]
>  => [1, 2] 
> 1.9.3p194 :007 > puts "Array when output in \"\" is #{array}"
> Array when output in "" is [1, 2]
>  => nil 

>> puts "Array when output in \"\" is (#{array.join(', ')})"

> Can I do something, so that the output is:
> Array when output in "" is (1, 2)

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Need help with something very simple Jatin Ganhotra <jatin.ganhotra@gmail.com> - 2013-03-21 08:39 -0700
  Re: Need help with something very simple Christian Neukirchen <chneukirchen@gmail.com> - 2013-03-21 17:55 +0100
  Re: Need help with something very simple Jatin Ganhotra <jatin.ganhotra@gmail.com> - 2013-03-21 10:18 -0700
    Re: Need help with something very simple Robert Klemme <shortcutter@googlemail.com> - 2013-03-21 22:23 +0100

csiph-web