我怎么能压缩这个逻辑?
an_array = some_list.select do |item|
include_item = true
if a_boolean
include_item = a_method?(item)
end
include_item
end