class TidyI18n::TranslationKeys
Attributes
yaml[RW]
Public Class Methods
new(yaml)
click to toggle source
# File lib/tidy_i18n/translation_keys.rb, line 75 def initialize(yaml) self.yaml = yaml end
parse(yaml)
click to toggle source
# File lib/tidy_i18n/translation_keys.rb, line 7 def self.parse(yaml) new(yaml).keys end
Public Instance Methods
keys()
click to toggle source
# File lib/tidy_i18n/translation_keys.rb, line 79 def keys @keys ||= build_keys end
Private Instance Methods
build_keys()
click to toggle source
# File lib/tidy_i18n/translation_keys.rb, line 85 def build_keys builder = RepeatKeyBuilder.new parser = Psych::Parser.new(builder) parser.parse(yaml) builder.parsed_keys end