Sha256: 89280d37a96ffef66a2d5627cfb7183e90f302c83faddc3470a9d6de7daf7214

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

# -*- encoding : utf-8 -*-

require 'phrase/delegate/fast_gettext'

module FastGettext
  module Translation
    def __with_phrase(*args)
      Phrase::Delegate::FastGettext.new(:_, *args)
    end
    alias_method_chain :_, :phrase
    
    def n__with_phrase(*args)
      Phrase::Delegate::FastGettext.new(:n_, *args)
    end
    alias_method_chain :n_, :phrase
    
    def s__with_phrase(*args)
      Phrase::Delegate::FastGettext.new(:s_, *args)
    end
    alias_method_chain :s_, :phrase
  end
end if defined? FastGettext::Translation

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phrase-0.3.4 lib/phrase/adapters/fast_gettext.rb
phrase-0.3.3 lib/phrase/adapters/fast_gettext.rb
phrase-0.3.2 lib/phrase/adapters/fast_gettext.rb