Re: hash, key, problem...
- From: psy <psy@xxxxxxxxxxxxxxxx>
- Date: Wed, 18 Jun 2008 05:04:24 -0500
On Wed, 18 Jun 2008 18:49:53 +0900
"Srijayanth Sridhar" <srijayanth@xxxxxxxxx> wrote:
Do you want something like this:
hash={:name => "John Doe", :age => 23}
hash.each do |elem|
puts elem.join("\n")
end
That should work. You can also of course get the string as:
string=elem.join("\n")
Hope that helps.
Jay
Yeah, this would work, but now there is another problem - it dont prints
the value of the variables.
Btw I got it done.
Thank you anyway
Katja
.
- References:
- hash, key, problem...
- From: psy
- Re: hash, key, problem...
- From: Srijayanth Sridhar
- hash, key, problem...
- Prev by Date: Re: What was YOUR first Ruby Project
- Next by Date: SOAP4R: running wsdl2ruby server/client as https
- Previous by thread: Re: hash, key, problem...
- Next by thread: Newcomer
- Index(es):
Relevant Pages
|