class I18nChecker::Command::ReferenceCheck
Public Class Methods
new(locale_file_paths: [], source_paths: [], reporter:)
click to toggle source
# File lib/i18n_checker/command/reference_check.rb, line 8 def initialize(locale_file_paths: [], source_paths: [], reporter:) @reporter = reporter @locale_texts = I18nChecker::Locale.texts_of(source_paths) @locale_files = I18nChecker::Locale.load_of(locale_file_paths) end
Public Instance Methods
run() { |not_found_result| ... }
click to toggle source
# File lib/i18n_checker/command/reference_check.rb, line 14 def run not_found_detector = I18nChecker::NotFound::Detector.new(@locale_files) not_found_result = @locale_texts.detect(not_found_detector) @reporter.report not_found_result yield not_found_result if block_given? end