Sha256: ae51eeb4340b0e593f5c97d384cc20f35bd5261122d58a8ebc9c688590f45763

Contents?: true

Size: 463 Bytes

Versions: 13

Compression:

Stored size: 463 Bytes

Contents

# encoding: utf-8

=begin
  gettext/textdomain_group - GetText::TextDomainGroup class

  Copyright (C) 2009  Masao Mutoh

  You may redistribute it and/or modify it under the same
  license terms as Ruby or LGPL.

=end

module GetText

  class TextDomainGroup
    attr_reader :textdomains

    def initialize
      @textdomains = []
    end

    def add(textdomain)
      @textdomains.unshift(textdomain) unless @textdomains.include? textdomain
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
gettext-2.3.9 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.8 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.7 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.6 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.5 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.4 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.3 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.2 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.1 lib/gettext/runtime/textdomain_group.rb
gettext-2.3.0 lib/gettext/runtime/textdomain_group.rb
gettext-2.2.1 lib/gettext/runtime/textdomain_group.rb
gettext-2.2.0 lib/gettext/runtime/textdomain_group.rb
ofm_gettext-2.0.1 lib/gettext/runtime/textdomain_group.rb