Module I18n::Backend::Helpers
In: lib/active_support/vendor/i18n-0.3.7/i18n/backend/helpers.rb

Methods

Constants

SEPARATOR_ESCAPE_CHAR = "\001"

Public Instance methods

Return a new hash with all keys and nested keys converted to symbols.

Expand keys chained by the the given separator through nested Hashes

  >> { "a.b.c" => "d", "a.b.e" => "f", "a.g" => "h", "i" => "j" }.unwind
  => { "a" => { "b" => { "c" => "d", "e" => "f" }, "g" => "h" }, "i" => "j"}

Flatten keys for nested Hashes by chaining up keys using the separator

  >> { "a" => { "b" => { "c" => "d", "e" => "f" }, "g" => "h" }, "i" => "j"}.wind
  => { "a.b.c" => "d", "a.b.e" => "f", "a.g" => "h", "i" => "j" }

[Validate]