lib/jruby_art/creators/creator.rb in jruby_art-1.0.4 vs lib/jruby_art/creators/creator.rb in jruby_art-1.0.5
- old
+ new
@@ -1,5 +1,8 @@
+# encoding: utf-8
+# frozen_string_literal: false
+
BASIC = <<-CODE
def setup
sketch_title '%s'
end
@@ -30,10 +33,12 @@
end
CODE
CLASS_BASIC = <<-CODE
+# encoding: utf-8
+# frozen_string_literal: false
class %s < Processing::App
def setup
sketch_title '%s'
end
@@ -48,10 +53,12 @@
end
end
CODE
EMACS_BASIC = <<-CODE
+# encoding: utf-8
+# frozen_string_literal: false
require 'jruby_art'
require 'jruby_art/app'
Processing::App::SKETCH_PATH = __FILE__
@@ -72,10 +79,12 @@
%s.new unless defined? $app
CODE
CLASS_MODE = <<-CODE
+# encoding: utf-8
+# frozen_string_literal: false
class %s < Processing::App
def setup
sketch_title '%s'
end
@@ -89,10 +98,12 @@
end
end
CODE
EMACS_MODE = <<-CODE
+# encoding: utf-8
+# frozen_string_literal: false
require 'jruby_art'
require 'jruby_art/app'
Processing::App::SKETCH_PATH = __FILE__
@@ -113,9 +124,11 @@
%s.new unless defined? $app
CODE
INNER = <<-CODE
+# encoding: utf-8
+# frozen_string_literal: false
class %s
include Processing::Proxy
end
CODE