On 19/05/05, Boris Glawe <boris / boris-glawe.de> wrote:
> Hi,
> 
> my problem is obviously very basic, but how to I acces for example the third
> character of the string "hello" ??
> 
> The [] method does not behave as expected, the each method returns the whole
> string, the methods of Enumerable mixin don't help me...
> 
> This can't be that hard to solve!?
> 
> thanks Boris
> 

hello[2,1] => 'l'

regards,

Brian


-- 
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/