/usr/lib/ruby/vendor_ruby/locale/tag/irregular.rb is in ruby-locale 2.1.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | =begin
locale/tag/irregular.rb - Locale::Tag::Irregular
Copyright (C) 2008 Masao Mutoh
You may redistribute it and/or modify it under the same
license terms as Ruby.
$Id: irregular.rb 27 2008-12-03 15:06:50Z mutoh $
=end
require 'locale/tag/simple'
module Locale
module Tag
# Broken tag class.
class Irregular < Simple
def initialize(tag)
tag = "en" if tag == nil or tag == ""
super(tag.to_s)
@tag = tag
end
# Returns an Array of tag-candidates order by priority.
def candidates
[Irregular.new(tag)]
end
# Conver to the klass(the class of Language::Tag)
private
def convert_to(klass)
klass.new(tag)
end
end
end
end
|