module FFaker::Tweet
def body(required_length = 140)
def body(required_length = 140) required_length = [required_length, 20].max body = '' prefix = '' until body.size > required_length body += "#{prefix}#{FFaker::Lorem.sentence}" prefix = ' ' end body[required_length - 1] = '#' body.gsub(/\s\S*\#.*$/, '.') end