Sha256: 58e1931301506695d94ba1e0a92f052baf60a876d710691f113f4288400fab54

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

require_relative 'loaf/configuration'
require_relative 'loaf/railtie'
require_relative 'loaf/version'

module Loaf
  # Set global configuration
  #
  # @api public
  def self.configuration=(config)
    @configuration = config
  end

  # Get global configuration
  #
  # @api public
  def self.configuration
    @configuration ||= Configuration.new
  end

  # Sets the Loaf configuration options. Best used by passing a block.
  #
  # Loaf.configure do |config|
  #   config.capitalize = true
  # end
  def self.configure
    yield configuration
  end
end # Loaf

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
loaf-0.10.0 lib/loaf.rb
loaf-0.9.0 lib/loaf.rb