public class EmbedRubyInterfaceAdapterImpl extends java.lang.Object implements EmbedRubyInterfaceAdapter
EmbedRubyInterfaceAdapter
and implements the
method that gets a instance of requested interface, which is implemented in Ruby.Constructor and Description |
---|
EmbedRubyInterfaceAdapterImpl(ScriptingContainer container) |
Modifier and Type | Method and Description |
---|---|
<T> T |
getInstance(java.lang.Object receiver,
java.lang.Class<T> clazz)
Returns a instance of a requested interface type from a previously evaluated script.
|
public EmbedRubyInterfaceAdapterImpl(ScriptingContainer container)
public <T> T getInstance(java.lang.Object receiver, java.lang.Class<T> clazz)
getInstance
in interface EmbedRubyInterfaceAdapter
receiver
- a receiver of the previously evaluated script.clazz
- an interface type of the returning instance.Copyright © 2001-2020 JRuby. All Rights Reserved.