Module: Propane::Proxy
- Defined in:
- lib/propane/app.rb
Overview
Importing PConstants to access to processing constants, to keep namespace clean use PConstants::TRIANGLE (for example) or to use bare TRIANGLE also ‘include PConstants’ Using :method_missing to mimic inner class methods egregious hack…
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
177 178 179 180 |
# File 'lib/propane/app.rb', line 177 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
173 174 175 |
# File 'lib/propane/app.rb', line 173 def respond_to_missing?(name, include_private = false) $app.respond_to?(name) || super end |