ext/pdf417/pdf417.c
/*
 * call-seq:
 *  new(text)
 *
 * Makes a new PDF417 object for the given text string
 */


Makes a new PDF417 object for the given text string
Makes a new PDF417 object for the given text string
static VALUE rb_pdf417_lib_new(VALUE class, VALUE text) {
  VALUE argv[1];
  pdf417param *ptr;
  VALUE tdata = Data_Make_Struct(class, pdf417param, 0, rb_pdf417_lib_cleanup, ptr);
  pdf417init(ptr);
  rb_iv_set(tdata, "@generation_options", INT2NUM(ptr->options));
  argv[0] = text;
  rb_obj_call_init(tdata, 1, argv);
  return tdata;
}
static VALUE rb_pdf417_lib_new ( VALUE class , VALUE text ) { VALUE argv [ 1 ] ; pdf417param * ptr ; VALUE tdata = Data_Make_Struct ( class , pdf417param , 0 , rb_pdf417_lib_cleanup , ptr ) ; pdf417init ( ptr ) ; rb_iv_set ( tdata , " " , INT2NUM ( ptr -> options ) ) ; argv [ 0 ] = text ; rb_obj_call_init ( tdata , 1 , argv ) ; return tdata ; }
call-seq:
  new(text)
call - seq : new ( text )