Module: Processing::Proxy

Includes:
Java::ProcessingCore::PConstants, Math, HelperMethods
Defined in:
lib/jruby_art/app.rb

Overview

Importing PConstants here to access the processing constants

Instance Method Summary collapse

Methods included from HelperMethods

#blend_color, #buffer, #color, #dist, #find_method, #frame_rate, #hsb_color, #int_to_ruby_colors, #java_self, #kamera, #key, #key_pressed?, #lerp_color, #load_strings, #max, #min, #mouse_pressed?, #p52ruby, #perspektiv, #proxy_java_fields, #save_strings, #thread, #web_to_color_array

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



215
216
217
218
219
220
# File 'lib/jruby_art/app.rb', line 215

def method_missing(name, *args)
  app = Processing.app
  return app.send(name, *args) if app && app.respond_to?(name)

  super
end

Instance Method Details

#respond_to_missing?(name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


211
212
213
# File 'lib/jruby_art/app.rb', line 211

def respond_to_missing?(name, include_private = false)
  Processing.app.respond_to?(name) || super
end