R
Ruby Geo
Why do I get the folowing error when I run this method ? ?
wrong number of arguments (2 for 3) (ArgumentError)
from C:/Ruby/methodscop/lib/new_class.rb:65
--------------------------------------------------------------------
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_as_array )
end
end
wrong number of arguments (2 for 3) (ArgumentError)
from C:/Ruby/methodscop/lib/new_class.rb:65
--------------------------------------------------------------------
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_as_array )
end
end