Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Can i please help
Ruby Geo
12/19/2007 1:02:00 PM
Well I changed the method, so that it can take the three parameters.
And my question would be How can I modify the ruby block code so that I
can do the perform the matching.
def self.search_by_keyword(businesses, searched_keyword_as_array,
flag_exact_or_partial_match)
businesses.select do |b|
b.my_keywords.include?(searched_keyword)
end
end
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Can i please help
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password