Class: PyruPythonBridge::PythonBridge
- Inherits:
-
Object
- Object
- PyruPythonBridge::PythonBridge
- Defined in:
- lib/pyru_python_bridge.rb
Class Method Summary collapse
Class Method Details
.call_python_function ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/pyru_python_bridge.rb', line 5 def self.call_python_function begin # Call the actual Python function here result = SomePythonModule.some_python_function # Placeholder for calling Python function return result rescue StandardError => e # Convert Python exception to Pyru exception raise PyruException, "Error calling Python function: #{e.}" end end |