Sha256: 4352a2d27e2dcfdf383ce8f40abea54165fd530d6edf3276897ae155ecd94313

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

module Murlsh

  # skip showing host record if domain is contained in title
  class Hostrec50Redundant < Plugin

    Hook = 'hostrec'

    def self.run(domain, url, title)
      domain unless (title and domain and title.downcase.index(domain))
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
murlsh-0.8.1 plugins/hostrec_50_redundant.rb
murlsh-0.8.0 plugins/hostrec_50_redundant.rb
murlsh-0.7.0 plugins/hostrec_50_redundant.rb
murlsh-0.6.1 plugins/hostrec_50_redundant.rb
murlsh-0.6.0 plugins/hostrec_50_redundant.rb