Module: I18n

Defined in:
lib/i18n/keys/index.rb,
lib/i18n/keys.rb,
lib/i18n/keys/commands.rb,
lib/i18n/keys/formatter.rb,
lib/i18n/keys/occurence.rb,
lib/i18n/parser/erb_parser.rb,
lib/i18n/parser/ruby_parser.rb

Overview

Keys.index(:default, :pattern => ‘/*/.rb,erb’).each(:foo, :bar) { |occurence| … }

when the :index name is not given it creates the index on the fly but won’t save it when the :index name is true it uses :default as an index name

when an index with the given name does not exist it builds and saves an index when an index with the given name exists and the given pattern does not match

the index's pattern it issues a warning and rebuilds the index

when no keys are given, occurences of all keys will be iterated when keys are given, only occurences of the given keys will be iterated

Defined Under Namespace

Modules: Commands, Keys Classes: ErbParser, RubyParser