Sha256: 42542001899b2570ee5bf1568ed5e897ba201c16f683565c2735553150701264

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

module G11n
  # DSL for the configuration of G11n
  module Configuration    
    # Sets the translations path
    def path the_path
      Translator.instance.translations_path = the_path + "/"
    end
    
    # Sets the locale
    def locale the_locale
      Translator.instance.locale = the_locale
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
g11n-0.0.2 lib/g11n/configuration.rb
g11n-0.0.1 lib/g11n/configuration.rb