Sha256: 8cd3dbe8ccba1b85b5b295cfefc0e9753d8e1b6a45c21593cbae2b0c1c69ea5e
Contents?: true
Size: 811 Bytes
Versions: 6
Compression:
Stored size: 811 Bytes
Contents
# -*- encoding : utf-8 -*- module Phrase autoload :Config, 'phrase/config' class << self def config Thread.current[:phrase_config] ||= Phrase::Config.new end def config=(value) Thread.current[:phrase_config] = value end %w(backend default_locale available_locales).each do |method| module_eval <<-DELEGATORS, __FILE__, __LINE__ + 1 def #{method} config.#{method} end DELEGATORS module_eval <<-DELEGATORS, __FILE__, __LINE__ + 1 def #{method}=(value) config.#{method} = (value) end DELEGATORS end end autoload :Extensions, 'phrase/extensions' autoload :Helpers, 'phrase/helpers' require 'phrase/engine' require 'phrase/backend' end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
phrase-0.0.6 | lib/phrase.rb |
phrase-0.0.5 | lib/phrase.rb |
phrase-0.0.4 | lib/phrase.rb |
phrase-0.0.3 | lib/phrase.rb |
phrase-0.0.2 | lib/phrase.rb |
phrase-0.0.1 | lib/phrase.rb |