.match を使用して選択的なツイートのみを許可およびブロックし、「does_match?」からのツイートのみを表示するのに苦労しています。
def does_match?
allow = "/orange|grape\sfruit|apple/"
block = "/@fruits|coconut/"
allowfruits = "/berry|mango/"
@tweet.match(allow).nil?
@tweet.match(block)
@tweet.match(allowfruits) if @user =~ /\A(twitteruser|anotheraccount)\Z/
@tweet.match(/@[A-Za-z0-9_:-]+/)
return @tweet
end
def show
return @tweet
end