Sha256: cadb563083f2c110b7bcbc2e321c3963857cad37fea3eb8df67b1344e40a6bde

Contents?: true

Size: 233 Bytes

Versions: 3

Compression:

Stored size: 233 Bytes

Contents

# Adapter for comparing https://github.com/nono/HTML-Truncator
module Truncato
  class PeppercornAdapter
    def self.truncate string, options
      string.truncate_html options[:max_length], :tail=>options[:tail]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
truncato-0.7.5 benchmark/truncato/vendor/peppercorn_adapter.rb
truncato-0.7.4 benchmark/truncato/vendor/peppercorn_adapter.rb
truncato-0.7.3 benchmark/truncato/vendor/peppercorn_adapter.rb