lib/review/converter.rb in review-2.3.0 vs lib/review/converter.rb in review-2.4.0

- old
+ new

@@ -1,7 +1,5 @@ -# encoding: utf-8 - # This program is free software. # You can distribute or modify this program under the terms of # the GNU LGPL, Lesser General Public License version 2.1. # @@ -9,20 +7,17 @@ class Converter attr_accessor :target def initialize(book, builder) @book = book - @book.config["builder"] = builder.target_name + @book.config['builder'] = builder.target_name @compiler = ReVIEW::Compiler.new(builder) end def convert(file, output_path) chap_name = File.basename(file, '.*') chap = @book.chapter(chap_name) result = @compiler.compile(chap) - File.open(output_path, 'w') do |f| - f.puts result - end + File.open(output_path, 'w') { |f| f.puts result } end end end -