Class: RLM::Sandbox::UnsafeInProcess::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/rlm/sandbox/unsafe_in_process.rb

Instance Method Summary collapse

Constructor Details

#initialize(runtime_bridge) ⇒ Scope

Returns a new instance of Scope.



82
83
84
# File 'lib/rlm/sandbox/unsafe_in_process.rb', line 82

def initialize(runtime_bridge)
  @runtime_bridge = runtime_bridge
end

Instance Method Details

#list_filesObject



102
103
104
# File 'lib/rlm/sandbox/unsafe_in_process.rb', line 102

def list_files
  runtime_bridge.list_files
end

#log(message) ⇒ Object



106
107
108
# File 'lib/rlm/sandbox/unsafe_in_process.rb', line 106

def log(message)
  runtime_bridge.log(message)
end

#predict(signature_name, input_hash) ⇒ Object



86
87
88
# File 'lib/rlm/sandbox/unsafe_in_process.rb', line 86

def predict(signature_name, input_hash)
  runtime_bridge.predict(signature_name, input_hash)
end

#read_file(handle) ⇒ Object



98
99
100
# File 'lib/rlm/sandbox/unsafe_in_process.rb', line 98

def read_file(handle)
  runtime_bridge.read_file(handle)
end

#submit(output_hash) ⇒ Object



94
95
96
# File 'lib/rlm/sandbox/unsafe_in_process.rb', line 94

def submit(output_hash)
  runtime_bridge.submit(output_hash)
end

#tool(tool_name, input_hash) ⇒ Object



90
91
92
# File 'lib/rlm/sandbox/unsafe_in_process.rb', line 90

def tool(tool_name, input_hash)
  runtime_bridge.tool(tool_name, input_hash)
end