class I18nChecker::Locale::KeyPath

Attributes

keys[R]

Public Class Methods

new() click to toggle source
# File lib/i18n_checker/locale/key_path.rb, line 6
def initialize
  @keys = []
end

Public Instance Methods

current() click to toggle source
# File lib/i18n_checker/locale/key_path.rb, line 18
def current
  @keys.join('.')
end
leave() click to toggle source
# File lib/i18n_checker/locale/key_path.rb, line 14
def leave
  @keys.pop
end
move_to(key) click to toggle source
# File lib/i18n_checker/locale/key_path.rb, line 10
def move_to(key)
  @keys.push(key)
end
to_s() click to toggle source
# File lib/i18n_checker/locale/key_path.rb, line 22
def to_s
  current
end