public final class RubyKernel
extends java.lang.Object
RubyKernel
mimics the useful Ruby p method by wrapping the Java
System.out.println method.Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
p()
Returns null.
|
static RubyArray<java.lang.Boolean> |
p(java.lang.Boolean... xs)
Calls System.out.println() and returns arguments.
|
static boolean |
p(boolean x)
Calls System.out.println() and returns the argument.
|
static boolean[] |
p(boolean[] x)
Calls System.out.println() and returns arguments.
|
static byte[] |
p(byte[] x)
Calls System.out.println() and returns arguments.
|
static char |
p(char x)
Calls System.out.println() and returns the argument.
|
static RubyArray<char[]> |
p(char[]... xs)
Calls System.out.println() and returns arguments.
|
static char[] |
p(char[] x)
Calls System.out.println() and returns the argument.
|
static RubyArray<java.lang.Character> |
p(java.lang.Character... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Double> |
p(java.lang.Double... xs)
Calls System.out.println() and returns arguments.
|
static double |
p(double x)
Calls System.out.println() and returns the argument.
|
static double[] |
p(double[] x)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Float> |
p(java.lang.Float... xs)
Calls System.out.println() and returns arguments.
|
static float |
p(float x)
Calls System.out.println() and returns the argument.
|
static float[] |
p(float[] x)
Calls System.out.println() and returns arguments.
|
static int |
p(int x)
Calls System.out.println() and returns the argument.
|
static int[] |
p(int[] x)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Integer> |
p(java.lang.Integer... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Long> |
p(java.lang.Long... xs)
Calls System.out.println() and returns arguments.
|
static long |
p(long x)
Calls System.out.println() and returns the argument.
|
static long[] |
p(long[] x)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Object> |
p(java.lang.Object... xs)
Calls System.out.println() and returns arguments.
|
static java.lang.Object |
p(java.lang.Object x)
Calls System.out.println() and returns the argument.
|
static short[] |
p(short[] x)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.String> |
p(java.lang.String... xs)
Calls System.out.println() and returns arguments.
|
static java.lang.String |
p(java.lang.String x)
Calls System.out.println() and returns the argument.
|
public static java.lang.Object p()
public static java.lang.Object p(java.lang.Object x)
x
- any Objectpublic static RubyArray<java.lang.Object> p(java.lang.Object... xs)
xs
- an array of ObjectRubyArray
of Objectpublic static java.lang.String p(java.lang.String x)
x
- any Stringpublic static RubyArray<java.lang.String> p(java.lang.String... xs)
xs
- an array of StringRubyArray
of Stringpublic static boolean p(boolean x)
x
- any booleanpublic static RubyArray<java.lang.Boolean> p(java.lang.Boolean... xs)
xs
- an array of BooleanRubyArray
of Booleanpublic static char p(char x)
x
- any charpublic static RubyArray<java.lang.Character> p(java.lang.Character... xs)
xs
- an array of CharacterRubyArray
of Characterpublic static char[] p(char[] x)
x
- any char[]public static RubyArray<char[]> p(char[]... xs)
xs
- an array of char[]RubyArray
of char[]public static double p(double x)
x
- any doublepublic static RubyArray<java.lang.Double> p(java.lang.Double... xs)
xs
- an array of DoubleRubyArray
of Doublepublic static float p(float x)
x
- any floatpublic static RubyArray<java.lang.Float> p(java.lang.Float... xs)
xs
- an array of FloatRubyArray
of Floatpublic static int p(int x)
x
- any intpublic static RubyArray<java.lang.Integer> p(java.lang.Integer... xs)
xs
- an array of IntegerRubyArray
of Integerpublic static long p(long x)
x
- any longpublic static RubyArray<java.lang.Long> p(java.lang.Long... xs)
xs
- an array of LongRubyArray
of Longpublic static byte[] p(byte[] x)
x
- an array of bytepublic static short[] p(short[] x)
x
- an array of shortpublic static int[] p(int[] x)
x
- an array of intpublic static long[] p(long[] x)
x
- an array of longpublic static float[] p(float[] x)
x
- an array of floatpublic static double[] p(double[] x)
x
- an array of doublepublic static boolean[] p(boolean[] x)
x
- an array of boolean