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.
25 26 27 28 29 30 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 25 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
38 39 40 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 38 def cleanup() @real.cleanup() end |
#execute(_trident_tuple, _trident_collector) ⇒ Object
33 34 35 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 33 def execute(_trident_tuple, _trident_collector) @real.execute(_trident_tuple, _trident_collector) end |
#prepare(_map, _trident_operation_context) ⇒ Object
43 44 45 |
# File 'lib/red_storm/proxy/proxy_function.rb', line 43 def prepare(_map, _trident_operation_context) @real.prepare(_map, _trident_operation_context) end |