C
Chris Mueller
Hi,
i am new to ruby and i am wondering how many more ways (and what ways)
there are to do this:
seperated_words = "hi, you, guys"
words_array = seperated_words.split(",")
for i in 0 ... words_array.length
words_array = words_array.strip
end
i suppose there's a one-liner that you write before you can think "ruby"
doesn't it ???
thx,
chris
i am new to ruby and i am wondering how many more ways (and what ways)
there are to do this:
seperated_words = "hi, you, guys"
words_array = seperated_words.split(",")
for i in 0 ... words_array.length
words_array = words_array.strip
end
i suppose there's a one-liner that you write before you can think "ruby"
doesn't it ???
thx,
chris