Sha256: 55e94d7acf69f9f41c8713891e9074e9edda0e59a0c770a7c833a36700f125ae

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

require 'settings_js/config'
require 'settings_js/merger'

module SettingsJs

  # Public: Configuration initializer.
  #
  # block - block with configuration object in parameter.
  #
  # Examples
  #
  #   SettingsJs.condiguration do |config|
  #     config.backend = 'awesome_backend'
  #     config.klass   = ApplicationSettings
  #     config.keys    = %w(key.key2 key3)
  #   end
  #
  # Returns Nothing.
  def self.configuration(&block)
    block.call(SettingsJs::Config.instance)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
settings_js-0.1.2 lib/settings_js.rb