lib/citeproc/ruby/renderer.rb in citeproc-ruby-1.1.8 vs lib/citeproc/ruby/renderer.rb in citeproc-ruby-1.1.10

- old
+ new

@@ -13,10 +13,11 @@ case options_or_engine when Engine @engine = options_or_engine when Hash locale, format = options_or_engine.values_at(:locale, :format) - @locale, @format = CSL::Locale.load(locale), Format.load(format) + @locale = locale.is_a?(CSL::Locale) ? locale : CSL::Locale.load(locale) + @format = Format.load(format) end end def abbreviate(*arguments) return unless engine