Evaluate an arbitrary Ruby expression, casting and wrapping the return value
Evaluate an arbitrary Ruby expression, casting and wrapping the return value
The expected class of the return value
The ruby expression to evaluate
The expression's return value.
wrap
org.jruby.embed.ScriptingContainer#runScriptlet
Evaluate an arbitrary Ruby expression, ignoring the return value
Evaluate an arbitrary Ruby expression, ignoring the return value
The ruby expression to evaluate
The expression's return value. If it's an org.jruby.RubyObj it's wrapped in a com.tecnoguru.scuby.RubyObj, otherwise it's returned as-is.
wrap
org.jruby.embed.ScriptingContainer#runScriptlet
Evaluate an arbitrary Ruby expression, expecting to get back a RubyObj
Evaluate an arbitrary Ruby expression, expecting to get back a RubyObj
The ruby expression to evaluate
The expression's return value. If it's an org.jruby.RubyObj it's wrapped in a com.tecnoguru.scuby.RubyObj, otherwise it's returned as-is.
wrap
org.jruby.embed.ScriptingContainer#runScriptlet
Load a Ruby file from the CLASSPATH into the JRuby environment
Load a Ruby file from the CLASSPATH into the JRuby environment
The file name to load, relative to the CLASSPATH
Creates the Scripting container or returns the already-existing one.
Creates the Scripting container or returns the already-existing one. Note that Scuby currently supports having a single Ruby interpreter.
Returns the underlying Ruby runtime
Set the interpreter local variable behavior.
Set the interpreter local variable behavior. Must be called before any Ruby code is executed. Default is transient.
The new local variable behavior
org.jruby.ScriptingContainer#new
Set the interpreter Scope.
Set the interpreter Scope. Must be called before any Ruby code is executed. Default is Singleton scope.
The new scope
org.jruby.ScriptingContainer#new
This object is one of the main entry points into Scuby. Including it allows you to evaluate arbitrary Ruby code, invoke JRuby functions and require Ruby files contained in the CLASSPATH. The other entry points are RubyClass and RubyObj. The JRuby trait is also provided to give the option of extending the trait or including the object.
RubyObj
RubyClass