Class: Heroku::Model::ArrayProxy
- Inherits:
-
Object
- Object
- Heroku::Model::ArrayProxy
- Defined in:
- lib/heroku/model/array_proxy.rb
Direct Known Subclasses
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(deferred_array) ⇒ ArrayProxy
constructor
A new instance of ArrayProxy.
- #method_missing(sym, *args) ⇒ Object
Constructor Details
#initialize(deferred_array) ⇒ ArrayProxy
Returns a new instance of ArrayProxy.
4 5 6 |
# File 'lib/heroku/model/array_proxy.rb', line 4 def initialize(deferred_array) @deferred_array = deferred_array end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/heroku/model/array_proxy.rb', line 8 def method_missing(sym, *args) begin proxy_array.send(sym, *args) rescue NoMethodError super end end |
Instance Method Details
#all ⇒ Object
16 17 18 |
# File 'lib/heroku/model/array_proxy.rb', line 16 def all proxy_array end |