Class RubyScript

  • All Implemented Interfaces:
    org.tentackle.script.Script

    public class RubyScript
    extends org.tentackle.script.AbstractScript
    A Ruby script.
    Author:
    harald
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RubyScript.CompiledScript
      The compiled ruby script.
    • Constructor Summary

      Constructors 
      Constructor Description
      RubyScript​(RubyLanguage language)
      Creates a ruby script.
    • Constructor Detail

      • RubyScript

        public RubyScript​(RubyLanguage language)
        Creates a ruby script.
        Parameters:
        language - the language
    • Method Detail

      • getCompiledScript

        public RubyScript.CompiledScript getCompiledScript()
        Gets the compiled script.
        Will be parsed if not done yet.
        Returns:
        the compiled script
      • isParsed

        public boolean isParsed()
      • clearParsed

        public void clearParsed()
      • execute

        public void execute​(org.tentackle.script.ScriptVariable... variables)
      • getResult

        public java.lang.Object getResult()