public class EmbedRubyInterfaceAdapterImpl extends 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(Object receiver,
Class<T> clazz)
Returns a instance of a requested interface type from a previously evaluated script.
|
public EmbedRubyInterfaceAdapterImpl(ScriptingContainer container)
public <T> T getInstance(Object receiver, Class<T> clazz)
getInstance in interface EmbedRubyInterfaceAdapterreceiver - a receiver of the previously evaluated script.clazz - an interface type of the returning instance.Copyright © 2001-2015 JRuby. All Rights Reserved.