# Can i please help

**URL:** <https://www.ruby-forum.com/t/can-i-please-help/123647>\
**Category:** Ruby\
**Created:** [December 19, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/can-i-please-help/123647 "2007-12-19T14:01:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruby\_tl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Post date:** [December 19, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/can-i-please-help/123647/1 "2007-12-19T14:01:34Z")

</div>

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
