org.jruby
Class Main
java.lang.Object
org.jruby.Main
- public class Main
- extends java.lang.Object
Class used to launch the interpreter.
This is the main class as defined in the jruby.mf manifest.
It is very basic and does not support yet the same array of switches
as the C interpreter.
Usage: java -jar jruby.jar [switches] [rubyfile.rb] [arguments]
-e 'command' one line of script. Several -e's allowed. Omit [programfile]
- Author:
- jpetersen
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
printUsage()
|
int |
run(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Main
public Main(RubyInstanceConfig config)
Main
public Main(java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Main
public Main()
main
public static void main(java.lang.String[] args)
run
public int run(java.lang.String[] args)
printUsage
public void printUsage()
Copyright © 2002-2007 JRuby Team. All Rights Reserved.