@SafeVarargs
  public static <E> RubyArray<E> newRubyArray(E... elements) {
    return new RubyArray<>(new ArrayList<>(Arrays.asList(elements)));
  }
@ SafeVarargs public static < E > RubyArray < E > newRubyArray ( E ... elements ) { return new RubyArray < > ( new ArrayList < > ( Arrays . asList ( elements ) ) ) ; }
Creates a {@link RubyArray} by given elements.

@param <E>
the type of the elements
@param elements
varargs
@return new {@link RubyArray}