How to get odd occurring text in a String in Ruby
I have a String and I want to get another string out of it which has only characters at odd occuring positions.

For example if i have a string called BLAHBLAH, the output I expect is BABA since the character indexes are at 0,2,4,6 respectively. I did it using a loop, but there should be one line implementation in Ruby.
How to get odd occurring text in a String in Ruby
===

I have a String and I want to get another string out of it which has only characters at odd occuring positions.

For example if i have a string called BLAHBLAH, the output I expect is BABA since the character indexes are at 0,2,4,6 respectively. I did it using a loop, but there should be one line implementation in Ruby.