com.tecnoguru.scuby

JRuby

object JRuby extends JRuby

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.

See also

RubyObj

RubyClass

Linear Supertypes
JRuby, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JRuby
  2. JRuby
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class IllegalTypeConversion extends RuntimeException

    Definition Classes
    JRuby
  2. class UnwrappedCallException extends RuntimeException

    Definition Classes
    JRuby

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def eval[T](expression: String)(implicit tag: ClassTag[T]): T

    Evaluate an arbitrary Ruby expression, casting and wrapping the return value

    Evaluate an arbitrary Ruby expression, casting and wrapping the return value

    T

    The expected class of the return value

    expression

    The ruby expression to evaluate

    returns

    The expression's return value.

    Definition Classes
    JRuby
    See also

    wrap

    org.jruby.embed.ScriptingContainer#runScriptlet

  11. def evalIgnore(expression: String): Unit

    Evaluate an arbitrary Ruby expression, ignoring the return value

    Evaluate an arbitrary Ruby expression, ignoring the return value

    expression

    The ruby expression to evaluate

    returns

    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.

    Definition Classes
    JRuby
    See also

    wrap

    org.jruby.embed.ScriptingContainer#runScriptlet

  12. def evalRuby(expression: String): RubyObj

    Evaluate an arbitrary Ruby expression, expecting to get back a RubyObj

    Evaluate an arbitrary Ruby expression, expecting to get back a RubyObj

    expression

    The ruby expression to evaluate

    returns

    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.

    Definition Classes
    JRuby
    See also

    wrap

    org.jruby.embed.ScriptingContainer#runScriptlet

  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. implicit def jrubyobj2rubyobj(jrobj: org.jruby.RubyObject): RubyObj

    Definition Classes
    JRuby
  18. val log: Logger

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def require(file: String): Boolean

    Load a Ruby file from the CLASSPATH into the JRuby environment

    Load a Ruby file from the CLASSPATH into the JRuby environment

    file

    The file name to load, relative to the CLASSPATH

    Definition Classes
    JRuby
  23. def ruby: ScriptingContainer

    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.

  24. def runtime: Ruby

    Returns the underlying Ruby runtime

    Returns the underlying Ruby runtime

    returns

    The underlying Ruby runtime

    Definition Classes
    JRuby
  25. def setLocalVariableBehavior(behavior: LocalVariableBehavior): Unit

    Set the interpreter local variable behavior.

    Set the interpreter local variable behavior. Must be called before any Ruby code is executed. Default is transient.

    behavior

    The new local variable behavior

    See also

    org.jruby.ScriptingContainer#new

  26. def setScope(scope: LocalContextScope): Unit

    Set the interpreter Scope.

    Set the interpreter Scope. Must be called before any Ruby code is executed. Default is Singleton scope.

    scope

    The new scope

    See also

    org.jruby.ScriptingContainer#new

  27. implicit def str2sym(sym: String): Symbol

    Definition Classes
    JRuby
  28. implicit def symbol2rubySymbol(sym: Symbol): RubyObj

    Definition Classes
    JRuby
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JRuby

Inherited from AnyRef

Inherited from Any

Ungrouped