APIdock / Ruby
/
method

new

ruby latest stable - Class: SyntaxError
new(*args)
public

Construct a SyntaxError exception.

static VALUE
syntax_error_initialize(int argc, VALUE *argv, VALUE self)
{
 VALUE mesg;
 if (argc == 0) {
 mesg = rb_fstring_cstr("compile error");
 argc = 1;
 argv = &mesg;
 }
 return rb_call_super(argc, argv);
}

AltStyle によって変換されたページ (->オリジナル) /