Sha256: d57e83ba462340978126847ca13911d00349c579cc27bfe705462cf5247eecdf
Contents?: true
Size: 484 Bytes
Versions: 426
Compression:
Stored size: 484 Bytes
Contents
module I18n module Locale module Tag module Parents def parent @parent ||= begin segs = to_a.compact segs.length > 1 ? self.class.tag(*segs[0..(segs.length-2)].join('-')) : nil end end def self_and_parents @self_and_parents ||= [self] + parents end def parents @parents ||= ([parent] + (parent ? parent.parents : [])).compact end end end end end
Version data entries
426 entries across 372 versions & 78 rubygems