Sha256: 70f78f5d9fe3b05467c7b73bc67c1e68cca60796ecac72cb21c433bf045d5549

Contents?: true

Size: 318 Bytes

Versions: 7

Compression:

Stored size: 318 Bytes

Contents

class IdsPlease
  module Parsers
    class Tumblr < IdsPlease::Parsers::Base

      MASK = /tumblr/i

      class << self
        private

        def parse_link(link)
          return if link.host.sub('.tumblr.com', '') == link.host
          link.host.sub('.tumblr.com', '')
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ids_please-2.2.0 lib/ids_please/parsers/tumblr.rb
ids_please-2.1.2 lib/ids_please/parsers/tumblr.rb
ids_please-2.1.1 lib/ids_please/parsers/tumblr.rb
ids_please-2.1.0 lib/ids_please/parsers/tumblr.rb
ids_please-2.0.0.beta2 lib/ids_please/parsers/tumblr.rb
ids_please-2.0.0.beta1 lib/ids_please/parsers/tumblr.rb
ids_please-2.0.0.beta lib/ids_please/parsers/tumblr.rb