lib/stylegen/generator.rb in stylegen-0.4.0 vs lib/stylegen/generator.rb in stylegen-0.5.0

- old
+ new

@@ -1,19 +1,19 @@ # frozen_string_literal: true -require "stylegen/data" -require "stylegen/template" +require 'stylegen/data' +require 'stylegen/template' module Stylegen class Generator def initialize(data) @data = Data.new(data) end def generate template = Template.new(@data) - file = File.open(@data.output_path, "w") + file = File.open(@data.output_path, 'w') file << template.render file.close end def stats