---
title: "PolyglotEngineWithRuby"
description: "Tests with code snippets referencing Ruby (executed only when implementation of Ruby is around)."
kind: "class"
id: "com.oracle.truffle.tck.impl.PolyglotEngineWithRuby"
module: "truffle-tck"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/truffle-tck/com/oracle/truffle/tck/impl/PolyglotEngineWithRuby.html"
---

# ◆ PolyglotEngineWithRuby

[truffle-tck](../../../../../index.md) › [com.oracle.truffle.tck.impl](index.md) · Every page: [llms.txt](../../../../../llms.txt)

Class in [`com.oracle.truffle.tck.impl`](index.md).

```java
public class PolyglotEngineWithRuby
```

Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `PolyglotEngineWithRuby`

Tests with code snippets referencing Ruby (executed only when implementation of Ruby is around).

## Constructors

### PolyglotEngineWithRuby()
<a id="&lt;init&gt;()"></a>`public PolyglotEngineWithRuby()`. Declared by the compiler. Creates a new PolyglotEngineWithRuby instance. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithRuby.html#<init>()`

## Methods

### initEngine()
<a id="initEngine()"></a>`public void initEngine()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithRuby.html#initEngine()`

### disposeEngine()
<a id="disposeEngine()"></a>`public void disposeEngine()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithRuby.html#disposeEngine()`

### testCallRubyFunctionFromJava()
<a id="testCallRubyFunctionFromJava()"></a>`public void testCallRubyFunctionFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithRuby.html#testCallRubyFunctionFromJava()`

### callRubyFunctionFromJava()
<a id="callRubyFunctionFromJava()"></a>`public void callRubyFunctionFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithRuby.html#callRubyFunctionFromJava()`

## Inherited members

- From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)
