com.tecnoguru.scuby

JRuby

trait JRuby extends AnyRef

This trait 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 object is also provided to give the option of extending the trait or including the object.

See also

JRuby

RubyObj

RubyClass

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

Type Members

  1. class IllegalTypeConversion extends RuntimeException

  2. class UnwrappedCallException extends RuntimeException

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.

    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.

    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.

    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

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

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

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

    Definition Classes
    AnyRef
  21. 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

  22. def runtime: Ruby

    Returns the underlying Ruby runtime

    Returns the underlying Ruby runtime

    returns

    The underlying Ruby runtime

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

  24. implicit def symbol2rubySymbol(sym: Symbol): RubyObj

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped