From: Marc Heiler Date: 2008-05-08T01:32:39+09:00 Subject: Re: Check if char in string? globalrev wrote: > how do i do this: > > str = "you muppet" > > if "y" in str: > print "its in there" > > > whats the best source for documentation on Ruby? i googled and checked > the homepage of ruby but there isnt really a clear one or im jus > duuumb. str = "you muppet" puts "its in there" if str.include? 'y' -- Posted via http://www.ruby-forum.com/.