class I18nChecker::NotFound::Result
Attributes
locale_texts[R]
Public Class Methods
new(locale_texts = [])
click to toggle source
# File lib/i18n_checker/not_found/result.rb, line 6 def initialize(locale_texts = []) @locale_texts = locale_texts end
Public Instance Methods
each_file() { |file, texts| ... }
click to toggle source
# File lib/i18n_checker/not_found/result.rb, line 14 def each_file(&block) file_texts = locale_texts.group_by(&:file) file_texts.each do |file, texts| texts.sort do |a, b| lr = a.line <=> b.line next lr if lr != 0 a.column <=> b.column end yield(file, texts) end end
empty?()
click to toggle source
# File lib/i18n_checker/not_found/result.rb, line 10 def empty? locale_texts.empty? end