Sha256: 864ab968f3b006ed3157c839a2fadcb4eac3305a258511449888aee74b00649d

Contents?: true

Size: 274 Bytes

Versions: 6

Compression:

Stored size: 274 Bytes

Contents

require 'retrobot/tweet_filters/base'

class Retrobot
  module TweetFilters
    class Unescape < Base
      def initialize(retrobot)
        super
      end

      def filter(tweet)
        tweet.text = CGI.unescape_html tweet.text
        tweet
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
retrobot-0.3.5 lib/retrobot/tweet_filters/unescape.rb
retrobot-0.3.4 lib/retrobot/tweet_filters/unescape.rb
retrobot-0.3.3 lib/retrobot/tweet_filters/unescape.rb
retrobot-0.3.2 lib/retrobot/tweet_filters/unescape.rb
retrobot-0.3.1 lib/retrobot/tweet_filters/unescape.rb
retrobot-0.3.0 lib/retrobot/tweet_filters/unescape.rb