Sha256: 6a3d66f5480188bef00046c96559d876b5d93d38401a982a372e6ef3b796c0a9

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

module G11n

  # The Facade so the g11n library gets used by humans!
  module DSL
  
    # Makes the translations. Nice, isn't it? Also, a bonus :translate alias
    def t
      Translator.instance.translate
    end
    
    alias :translate :t
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
g11n-0.0.4 lib/g11n/dsl.rb
g11n-0.0.3 lib/g11n/dsl.rb
g11n-0.0.2 lib/g11n/dsl.rb
g11n-0.0.1 lib/g11n/dsl.rb