Sha256: fe39a35a0b7941348483a0bbfa693c1ce46d9dfbb46c032ba7d3647757b343cd

Contents?: true

Size: 259 Bytes

Versions: 7

Compression:

Stored size: 259 Bytes

Contents

module TruncateHtml
  class Configuration
    attr_accessor :length, :omission, :word_boundary
  end

  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield configuration
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
truncate_html-0.5.3 lib/truncate_html/configuration.rb
truncate_html-0.5.2 lib/truncate_html/configuration.rb
truncate_html-0.5.1 lib/truncate_html/configuration.rb
truncate_html-0.5.0 lib/truncate_html/configuration.rb
truncate_html-0.4.0 lib/truncate_html/configuration.rb
truncate_html-0.3.2 lib/truncate_html/configuration.rb
truncate_html-0.3.1 lib/truncate_html/configuration.rb