Class: Bluebird::Strategies::TruncateText::Strategy
- Defined in:
- lib/bluebird/strategies/truncate_text/strategy.rb
Class Method Summary collapse
Class Method Details
.run(tweet, config) ⇒ Object
7 8 9 10 11 |
# File 'lib/bluebird/strategies/truncate_text/strategy.rb', line 7 def run(tweet, config) if run?(tweet, config.max_length) truncate(tweet, config.max_length) end end |