Call Ruby from Kotlin or embed Ruby code inside Kotlin
Embedded Ruby inside Kotlin
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/embed-ruby
Compile and Execute from MSYS2 or Cygwin with ruby development C header files
Demo output
Ruby code which is running inside Kotlin