Module: Propane::Proxy
- Includes:
- Math, MathTool, PConstants, HelperMethods
- Defined in:
- lib/propane/app.rb
Overview
Importing PConstants to access processing constants, we also need to ‘include PConstants’ to avoid requiring the ‘PConstants::` prefix `include Math etc because we expect to use them` Using :method_missing to mimic inner class methods egregious hack…
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) ⇒ Object
176 177 178 179 |
# File 'lib/propane/app.rb', line 176 def method_missing(name, *args) return $app.send(name, *args) if $app && $app.respond_to?(name) super end |
Instance Method Details
#respond_to_missing?(name, include_private = false) ⇒ Boolean
172 173 174 |
# File 'lib/propane/app.rb', line 172 def respond_to_missing?(name, include_private = false) $app.respond_to?(name) || super end |