lib/i18n_screwdriver/translation.rb in i18n_screwdriver-10.6.0 vs lib/i18n_screwdriver/translation.rb in i18n_screwdriver-10.7.0

- old
+ new

@@ -2,11 +2,11 @@ class Translation < String Error = Class.new(StandardError) attr_accessor :text, :options - def self.new(text, options = {}, &block) - translation = super(options[:raw] ? text : I18nScrewdriver.translate(text, options)) + def self.new(text, **options, &block) + translation = super(options[:raw] ? text : I18nScrewdriver.translate(text, **options)) translation.text = text translation.options = options if block urls = Array(block.call)