Sha256: 1f2b2a53cb2b4b3e40df51689dea7fd0b225f577dd5f398aecad5fa090973e02

Contents?: true

Size: 377 Bytes

Versions: 31

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

# Henkei monkey patch for configuration support
class Henkei
  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  # Handle Henkei configuration
  class Configuration
    attr_accessor :mime_library

    def initialize
      @mime_library = 'mime/types'
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
henkei-2.9.2.3 lib/henkei/configuration.rb
henkei-2.9.2.2 lib/henkei/configuration.rb
henkei-2.9.2.1 lib/henkei/configuration.rb
henkei-1.28.5.2 lib/henkei/configuration.rb
henkei-2.9.1.1 lib/henkei/configuration.rb
henkei-2.9.0.1 lib/henkei/configuration.rb
henkei-2.8.0.1 lib/henkei/configuration.rb
henkei-2.7.0.1 lib/henkei/configuration.rb
henkei-2.6.0.2 lib/henkei/configuration.rb
henkei-1.28.5.1 lib/henkei/configuration.rb
henkei-1.28.4.1 lib/henkei/configuration.rb
henkei-1.28.3.2 lib/henkei/configuration.rb
henkei-2.6.0.1 lib/henkei/configuration.rb
henkei-2.5.0.1 lib/henkei/configuration.rb
henkei-2.4.1.1 lib/henkei/configuration.rb
henkei-2.4.0.2 lib/henkei/configuration.rb
henkei-1.28.3.1 lib/henkei/configuration.rb
henkei-1.28.2.1 lib/henkei/configuration.rb
henkei-1.28.1.1 lib/henkei/configuration.rb
henkei-1.28.1 lib/henkei/configuration.rb