lib/i18n/tasks/reports/base.rb in i18n-tasks-0.2.22 vs lib/i18n/tasks/reports/base.rb in i18n-tasks-0.3.0.rc1

- old
+ new

@@ -1,13 +1,14 @@ # coding: utf-8 module I18n::Tasks::Reports class Base - def initialize - @task = I18n::Tasks::BaseTask.new + def initialize(task = I18n::Tasks::BaseTask.new) + @task = task end attr_reader :task + delegate :base_locale, :locales, to: :task MISSING_TYPES = { missing_from_base: {glyph: '✗', summary: 'missing from base locale'}, missing_from_locale: {glyph: '∅', summary: 'missing from locale but present in base locale'}, eq_base: {glyph: '=', summary: 'value equals base value'}