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


Groups > comp.lang.ruby > #6774

Re: Need help with something very simple

From Christian Neukirchen <chneukirchen@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: Need help with something very simple
Date 2013-03-21 17:55 +0100
Organization [ posted via ] IN-Ulm
Message-ID <87a9pwd75p.fsf@gmail.com> (permalink)
References <3e2ec553-ee7d-4625-8e2d-4d2687a165ad@googlegroups.com>

Show all headers | 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