Class: ProxyFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/red_storm/proxy/proxy_function.rb

Instance Method Summary collapse

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

#cleanupObject



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