class Processing::Inner
This class creates a pseudo 'java inner class' of the sketch
Public Instance Methods
create!(path, _args_)
click to toggle source
Create a pseudo inner class, given a path.
# File lib/ruby-processing/exporters/creator.rb, line 154 def create!(path, _args_) return usage if /\?/ =~ path || /--help/ =~ path main_file = File.basename(path, '.rb') # allow uneeded extension input # Check to make sure that the main file doesn't exist already already_exist(path) @name = main_file.camelize writer = SketchWriter.new(main_file) template = inner_class_template writer.save(template) end
inner_class_template()
click to toggle source
# File lib/ruby-processing/exporters/creator.rb, line 150 def inner_class_template format(INNER, @name) end