Sha256: 6897d6a61553c27a79f6e6239be1aa6d184ae8fd8bc2b729b7c56d4fca078318

Contents?: true

Size: 383 Bytes

Versions: 20

Compression:

Stored size: 383 Bytes

Contents

module Troy
  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure(&block)
    yield configuration
  end

  class Configuration < OpenStruct
    def assets
      @assets ||= Configuration.new
    end

    def i18n
      @i18n ||= Configuration.new.tap do |config|
        config.load_path = ["config/locales/*.yml"]
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
troy-0.0.20 lib/troy/configuration.rb
troy-0.0.19 lib/troy/configuration.rb
troy-0.0.18 lib/troy/configuration.rb
troy-0.0.17 lib/troy/configuration.rb
troy-0.0.16 lib/troy/configuration.rb
troy-0.0.15 lib/troy/configuration.rb
troy-0.0.14 lib/troy/configuration.rb
troy-0.0.13 lib/troy/configuration.rb
troy-0.0.12 lib/troy/configuration.rb
troy-0.0.11 lib/troy/configuration.rb
troy-0.0.10 lib/troy/configuration.rb
troy-0.0.9 lib/troy/configuration.rb
troy-0.0.8 lib/troy/configuration.rb
troy-0.0.7 lib/troy/configuration.rb
troy-0.0.6 lib/troy/configuration.rb
troy-0.0.5 lib/troy/configuration.rb
troy-0.0.4 lib/troy/configuration.rb
troy-0.0.3 lib/troy/configuration.rb
troy-0.0.2 lib/troy/configuration.rb
troy-0.0.1 lib/troy/configuration.rb