Module: Propane::Proxy

Includes:
Java::ProcessingCore::PConstants, Math, HelperMethods
Defined in:
lib/propane/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?, #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, &block) ⇒ Object



192
193
194
195
196
# File 'lib/propane/app.rb', line 192

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

  super
end

Instance Method Details

#respond_to_missing?(symbol, include_priv = false) ⇒ Boolean

Returns:

  • (Boolean)


188
189
190
# File 'lib/propane/app.rb', line 188

def respond_to_missing?(symbol, include_priv = false)
  Propane.app.respond_to?(symbol, include_priv) || super
end