Subject: Re: Search string for occurneces of words stored in array
From: Roger Pack <rogerpack2005 gmail.com>
Date: Thu, 1 May 2008 00:04:42 +0900
References: 300157
In-reply-to: 300157
I'd write my own
class String
def includes_all? array
# stuff
end
end
> "This is my test sentence".includes_all?("This", "is", "my")
--
Posted via http://www.ruby-forum.com/.