File: textdomain_group.rb

package info (click to toggle)
libgettext-ruby 2.1.0-2.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,628 kB
  • ctags: 511
  • sloc: ruby: 4,391; makefile: 12
file content (24 lines) | stat: -rw-r--r-- 448 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=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