Methods
P
S
Instance Public methods
parent()
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/parents.rb, line 6
def parent
  @parent ||= begin
    segs = to_a.compact
    segs.length > 1 ? self.class.tag(*segs[0..(segs.length-2)].join('-')) : nil
  end
end
parents()
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/parents.rb, line 17
def parents
  @parents ||= ([parent] + (parent ? parent.parents : [])).compact
end
self_and_parents()
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/locale/tag/parents.rb, line 13
def self_and_parents
  @self_and_parents ||= [self] + parents
end