Class: Sketch
- Inherits:
-
Object
show all
- Defined in:
- lib/jruby_art/creators/sketch_writer.rb
Overview
Implements methods and class_methods omits blank line after draw uses private method_lines to format method lines
Instance Method Summary
collapse
Instance Method Details
#class_methods(param) ⇒ Object
55
56
57
58
59
|
# File 'lib/jruby_art/creators/sketch_writer.rb', line 55
def class_methods(param)
lines = [format('class %s < Processing::App', param.class_name)]
lines.concat methods(param, INDENT)
lines << 'end'
end
|
#methods(param, indent) ⇒ Object
48
49
50
51
52
53
|
# File 'lib/jruby_art/creators/sketch_writer.rb', line 48
def methods(param, indent)
lines = []
lines.concat method_lines('settings', param.sketch_size, indent)
lines.concat method_lines('setup', param.sketch_title, indent)
lines.concat method_lines('draw', BLANK, indent)
end
|