Class: I18n::Processes::BaseProcess

Inherits:
Object
  • Object
show all
Includes:
Configuration, Data, GoogleTranslation, HtmlKeys, IgnoreKeys, KeyPatternMatching, Logging, MissingKeys, PluralKeys, References, SplitKey, Stats, UnusedKeys, UsedKeys
Defined in:
lib/i18n/processes/base_process.rb

Direct Known Subclasses

ConsoleContext

Constant Summary

Constants included from Data

Data::DATA_DEFAULTS

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

MissingKeys::MISSING_TYPES

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::PLURAL_KEY_RE, PluralKeys::PLURAL_KEY_SUFFIXES

Constants included from KeyPatternMatching

KeyPatternMatching::MATCH_NOTHING

Instance Method Summary collapse

Methods included from Stats

#forest_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 GoogleTranslation

#fetch_google_translations, #google_translate_forest, #google_translate_list

Methods included from UnusedKeys

#unused_keys, #unused_tree

Methods included from MissingKeys

#collapse_same_key_in_locales!, #eq_base_keys, #equal_values_tree, #locale_key_missing?, #missing_diff_forest, #missing_diff_tree, #missing_keys, #missing_keys_types, missing_keys_types, #missing_used_forest, #missing_used_tree

Methods included from IgnoreKeys

#ignore_key?, #ignore_pattern

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

#html_key?

Methods included from References

#process_references

Methods included from PluralKeys

#collapse_plural_nodes!, #depluralize_key, #plural_forms?, #plural_suffix?

Methods included from KeyPatternMatching

compile_key_pattern, compile_patterns_re, key_pattern_re_body

Methods included from SplitKey

key_parts, last_key_part, split_key

Constructor Details

#initialize(config = {}) ⇒ BaseProcess

Returns a new instance of BaseProcess.



39
40
41
# File 'lib/i18n/processes/base_process.rb', line 39

def initialize(config = {})
  self.config = config || {}
end

Instance Method Details

#inspectObject



43
44
45
# File 'lib/i18n/processes/base_process.rb', line 43

def inspect
  "#{self.class.name}#{config_for_inspect}"
end