Python
1.py
1 2 3 | import lib obj = lib.A() print(obj.a()) |
lib.py
1 2 3 | class A: def a( self ): return 'a' |
Ruby
1.rb
1 2 3 | require_relative 'lib' obj = Lib:: A . new () p obj.a() |
lib.rb
1 2 3 4 5 6 7 | module Lib class A def a() return 'a' end end end |