Sha256: bd45e74cb43312fc1e06b9840dfa452409d38d3af1baa7ce6c4b755bf4744cee

Contents?: true

Size: 216 Bytes

Versions: 26

Compression:

Stored size: 216 Bytes

Contents

require "gettext"

module Rabbit
  module GetText
    DOMAIN = "rabbit"

    class << self
      def included(mod)
        mod.send(:include, ::GetText)
        mod.bindtextdomain(DOMAIN)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rabbit-2.0.5 lib/rabbit/gettext.rb
rabbit-2.0.4 lib/rabbit/gettext.rb
rabbit-2.0.3 lib/rabbit/gettext.rb
rabbit-2.0.2 lib/rabbit/gettext.rb
rabbit-2.0.1 lib/rabbit/gettext.rb
rabbit-2.0.0 lib/rabbit/gettext.rb