Class: Pyru_Ruby_Bridge::RubyBridge
- Inherits:
-
Object
- Object
- Pyru_Ruby_Bridge::RubyBridge
- Defined in:
- lib/pyru_ruby_bridge.rb
Class Method Summary collapse
Class Method Details
.some_ruby_method(arg) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pyru_ruby_bridge.rb', line 7 def self.some_ruby_method(arg) # Call the actual Ruby method here # For example, assuming `some_ruby_method` is defined in a Ruby library result = some_ruby_method(arg) # Convert the result to Pyru data type return PyruRubyBridge::Conversions.ruby_to_pyru(result) rescue StandardError => e # Convert Ruby exception to Pyru exception raise PyruRubyBridge::PyruException, "Error calling Ruby method: #{e.}" end |