Class: ProxyFunction
- Inherits:
-
Object
- Object
- ProxyFunction
- Defined in:
- lib/red_storm/proxy/proxy_function.rb
Instance Method Summary collapse
- #cleanup ⇒ Object
- #execute(_trident_tuple, _trident_collector) ⇒ Object
-
#initialize(base_class_path, real_class_name) ⇒ ProxyFunction
constructor
A new instance of ProxyFunction.
- #prepare(_map, _trident_operation_context) ⇒ Object
Constructor Details
#initialize(base_class_path, real_class_name) ⇒ ProxyFunction
Returns a new instance of ProxyFunction.
19 20 21 22 23 24 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 19 def initialize(base_class_path, real_class_name) @real = Object.module_eval(real_class_name).new rescue NameError require base_class_path @real = Object.module_eval(real_class_name).new end |
Instance Method Details
#cleanup ⇒ Object
32 33 34 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 32 def cleanup() @real.cleanup() end |
#execute(_trident_tuple, _trident_collector) ⇒ Object
27 28 29 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 27 def execute(_trident_tuple, _trident_collector) @real.execute(_trident_tuple, _trident_collector) end |
#prepare(_map, _trident_operation_context) ⇒ Object
37 38 39 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 37 def prepare(_map, _trident_operation_context) @real.prepare(_map, _trident_operation_context) end |