R
Ruby Geo
objects = [bsn0, bsn1, bsn2, bsn3, bsn4]
search = ["Sole Trader"]
results = objects.select do |b|
match = true
catchsuccess) do
search.each{|s| throw :success if b.my_keywords.include?(s) }
match = false
end
match
end
puts (" ")
puts "Search Results"
puts (" ")
results.each{|r| puts r }
search = ["Sole Trader"]
results = objects.select do |b|
match = true
catchsuccess) do
search.each{|s| throw :success if b.my_keywords.include?(s) }
match = false
end
match
end
puts (" ")
puts "Search Results"
puts (" ")
results.each{|r| puts r }