@@ -34,7 +34,10 @@ module Render
3434 } . freeze
3535 # All sketches extend this class
3636 class App < PApplet
37- include HelperMethods , Math , MathTool , Render
37+ include HelperMethods
38+ include Math
39+ include MathTool
40+ include Render
3841 # Alias some methods for familiarity for Shoes coders.
3942 # surface replaces :frame, but needs field_reader for access
4043 alias oval ellipse
@@ -181,9 +184,9 @@ def mix_proxy_into_inner_classes
181184
182185 def import_opengl
183186 # Include processing opengl classes that we'd like to use:
184- %w( FontTexture FrameBuffer LinePath LineStroker PGL
187+ %w[ FontTexture FrameBuffer LinePath LineStroker PGL
185188 PGraphics2D PGraphics3D PGraphicsOpenGL PShader
186- PShapeOpenGL Texture ) . each do |klass |
189+ PShapeOpenGL Texture ] . each do |klass |
187190 java_import format ( 'processing.opengl.%s' , klass )
188191 end
189192 end
@@ -192,14 +195,16 @@ def import_opengl
192195 # @HACK purists may prefer 'forwardable' to the use of Proxy
193196 # Importing PConstants here to access the processing constants
194197 module Proxy
195- include Math , HelperMethods , Java ::ProcessingCore ::PConstants
198+ include Math
199+ include HelperMethods
200+ include Java ::ProcessingCore ::PConstants
196201
197- def respond_to_missing? ( name , include_private = false )
198- $app. respond_to? ( name ) || super
202+ def respond_to_missing? ( symbol , include_priv = false )
203+ $app. respond_to? ( symbol , include_priv ) || super
199204 end
200205
201- def method_missing ( name , *args )
202- return $app. send ( name , *args ) if $app && $app . respond_to? ( name )
206+ def method_missing ( name , *args , & block )
207+ return $app. send ( name , *args ) if $app. respond_to? name
203208 super
204209 end
205210 end # Processing::Proxy
0 commit comments