Python
1.py
import lib obj = lib.A() print(obj.a())
lib.py
class A: def a(self): return 'a'
Ruby
1.rb
require_relative 'lib' obj = Lib::A.new() p obj.a()
lib.rb
module Lib class A def a() return 'a' end end end
Python & Ruby
import lib obj = lib.A() print(obj.a())
class A: def a(self): return 'a'
require_relative 'lib' obj = Lib::A.new() p obj.a()
module Lib class A def a() return 'a' end end end