Trait/Object

com.tecnoguru.scuby

JRuby

Related Docs: object JRuby | package scuby

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. class IllegalTypeConversion extends RuntimeException

    Permalink
  2. class UnwrappedCallException extends RuntimeException

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

    Permalink

    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

  9. def evalIgnore(expression: String): Unit

    Permalink

    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

  10. def evalRuby(expression: String): RubyObj

    Permalink

    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

  11. def finalize(): Unit

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

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

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

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

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

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

    Permalink

    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

  20. def runtime: Ruby

    Permalink

    Returns the underlying Ruby runtime

    Returns the underlying Ruby runtime

    returns

    The underlying Ruby runtime

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

    Permalink
  22. implicit def symbol2rubySymbol(sym: Symbol): RubyObj

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

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped