class EmacsSketch
A sketch that will run with jruby, for emacs etc
Public Instance Methods
code()
click to toggle source
# File lib/jruby_art/creators/sketch_writer.rb, line 124 def code lines = [ '# frozen_string_literal: true', BLANK, "require 'jruby_art'", "require 'jruby_art/app'", BLANK, 'Processing::App::SKETCH_PATH = __FILE__.freeze', BLANK ] lines.concat class_methods lines << BLANK lines << format( '%<name>s.new if Processing.app.nil?', name: param.class_name ) end