Sha256: 46c29c065542125b8494ce416998914c5afca7438db73c2b436f6aee222c91b2

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 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 or get the locale
    def locale the_locale = nil
      Translator.instance.locale = the_locale if the_locale
      Translator.instance.locale
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
g11n-0.0.3 lib/g11n/configuration.rb