Module: I18n::Inflector::Config
- Included in:
- Interpolate
- Defined in:
- lib/i18n-inflector/config.rb
Overview
This module contains submodules and module methods for handling global configuration of the engine.
Defined Under Namespace
Modules: Escapes, Keys, Markers, Operators, Reserved
Constant Summary collapse
- OPTION_PREFIX =
Prefix that makes option a controlling option.
InflectionOptions::OPTION_PREFIX
- OPTION_PREFIX_REGEXP =
Regexp matching a prefix that makes option a controlling option.
Regexp.new('^' << OPTION_PREFIX)
- PATTERN_RESTR =
A string for regular expression that catches patterns.
'(.?)' << Markers::PATTERN << '([^\\' << Markers::PATTERN_BEGIN << ']*)\\' << Markers::PATTERN_BEGIN << '([^\\' << Markers::PATTERN_END << ']+)\\' << Markers::PATTERN_END << '((?:\\'<< Markers::PATTERN_BEGIN << '([^\\' << Markers::PATTERN_BEGIN << ']+)\\' << Markers::PATTERN_END << ')*)'
- MULTI_RESTR =
A string for regular expression that extracts additional patterns attached.
'\\' << Markers::PATTERN_BEGIN << '([^\\' << Markers::PATTERN_END + ']+)\\' << Markers::PATTERN_END
- TOKENS_RESTR =
A regular expression that catches token groups or single tokens.
'(?:' << '([^' << Operators::Tokens::ASSIGN << '\\' << Operators::Tokens::OR << ']+)' << Operators::Tokens::ASSIGN << '+' << '([^\\' << Operators::Tokens::OR << ']+)\1?)' << '|([^' << Operators::Tokens::ASSIGN << '\\' << Operators::Tokens::OR << ']+)'
- PATTERN_REGEXP =
A regular expression that catches patterns.
Regexp.new PATTERN_RESTR
- MULTI_REGEXP =
A regular expression that extracts additional patterns attached.
Regexp.new MULTI_RESTR
- TOKENS_REGEXP =
A regular expression that catches token groups or single tokens.
Regexp.new TOKENS_RESTR