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.4.0.1 lib/henkei/configuration.rb
henkei-2.3.0.1 lib/henkei/configuration.rb
henkei-2.2.1.2 lib/henkei/configuration.rb
henkei-2.2.1.1 lib/henkei/configuration.rb
henkei-2.2.0.1 lib/henkei/configuration.rb
henkei-1.27.1 lib/henkei/configuration.rb
henkei-1.26.1 lib/henkei/configuration.rb
henkei-1.25.1 lib/henkei/configuration.rb
henkei-1.24.1 lib/henkei/configuration.rb
henkei-1.23.3 lib/henkei/configuration.rb
henkei-1.23.2 lib/henkei/configuration.rb