Class: Retrobot::TweetFilters::Unescape
- Defined in:
- lib/retrobot/tweet_filters/unescape.rb
Instance Method Summary collapse
- #filter(tweet) ⇒ Object
-
#initialize(retrobot) ⇒ Unescape
constructor
A new instance of Unescape.
Methods inherited from Base
Constructor Details
#initialize(retrobot) ⇒ Unescape
Returns a new instance of Unescape.
6 7 8 |
# File 'lib/retrobot/tweet_filters/unescape.rb', line 6 def initialize(retrobot) super end |
Instance Method Details
#filter(tweet) ⇒ Object
10 11 12 13 |
# File 'lib/retrobot/tweet_filters/unescape.rb', line 10 def filter(tweet) tweet.text = CGI.unescape_html tweet.text tweet end |