Class: I18n::Tasks::BaseTask
- Inherits:
-
Object
- Object
- I18n::Tasks::BaseTask
- Includes:
- Configuration, Data, HtmlKeys, IgnoreKeys, Interpolations, KeyPatternMatching, Logging, MissingKeys, PluralKeys, References, SplitKey, Stats, Translation, UnusedKeys, UsedKeys
- Defined in:
- lib/i18n/tasks/base_task.rb
Direct Known Subclasses
Constant Summary
Constants included from Data
Constants included from Configuration
Configuration::CONFIG_FILES, Configuration::DEFAULTS, Configuration::IGNORE_TYPES
Constants included from Logging
Logging::MUTEX, Logging::PROGRAM_NAME
Constants included from MissingKeys
Constants included from UsedKeys
UsedKeys::ALWAYS_EXCLUDE, UsedKeys::SEARCH_DEFAULTS
Constants included from HtmlKeys
HtmlKeys::HTML_KEY_PATTERN, HtmlKeys::MAYBE_PLURAL_HTML_KEY_PATTERN
Constants included from PluralKeys
PluralKeys::CLDR_CATEGORY_KEYS, PluralKeys::PLURAL_KEY_RE, PluralKeys::PLURAL_KEY_SUFFIXES
Constants included from KeyPatternMatching
KeyPatternMatching::MATCH_NOTHING
Instance Method Summary collapse
-
#initialize(config_file: nil, **config) ⇒ BaseTask
constructor
A new instance of BaseTask.
- #inspect ⇒ Object
Methods included from Stats
Methods included from Data
#build_tree, #data, #data_forest, #empty_forest, #external_key?, #key_value?, #node, #non_normalized_paths, #normalize_store!, #t, #t_proc, #tree
Methods included from Configuration
#base_locale, #config, #config=, #config_for_inspect, #config_sections, #data_config, #file_config, #ignore_config, #internal_locale, #locales, #translation_config
Methods included from Logging
log_error, log_stderr, log_verbose, log_warn, program_name, warn_deprecated
Methods included from Translation
Methods included from UnusedKeys
Methods included from Interpolations
Methods included from MissingKeys
#collapse_same_key_in_locales!, #eq_base_keys, #equal_values_tree, #load_rails_i18n_pluralization!, #locale_key_missing?, #missing_diff_forest, #missing_diff_tree, #missing_keys, #missing_keys_types, missing_keys_types, #missing_plural_forest, #missing_used_forest, #missing_used_tree, #required_plural_keys_for_locale
Methods included from IgnoreKeys
Methods included from UsedKeys
#caching_file_finder_provider, #caching_file_reader, #merge_scanner_configs, #scanner, #search_config, #used_in_expr?, #used_in_source_tree, #used_tree
Methods included from HtmlKeys
Methods included from References
Methods included from PluralKeys
#collapse_plural_nodes!, #depluralize_key, #plural_forms?, #plural_nodes, #plural_suffix?
Methods included from KeyPatternMatching
#compile_key_pattern, #compile_patterns_re, #key_pattern_re_body
Methods included from SplitKey
Constructor Details
#initialize(config_file: nil, **config) ⇒ BaseTask
Returns a new instance of BaseTask.
42 43 44 45 |
# File 'lib/i18n/tasks/base_task.rb', line 42 def initialize(config_file: nil, **config) @config_override = config_file self.config = config || {} end |
Instance Method Details
#inspect ⇒ Object
47 48 49 |
# File 'lib/i18n/tasks/base_task.rb', line 47 def inspect "#{self.class.name}#{config_for_inspect}" end |