ext/pdf417/pdf417.c
// The initialization method for this module
The initialization method for this module
The initialization method for this module
void Init_pdf417() {
  rb_cPdf417 = rb_define_class("PDF417", rb_cObject); 
  rb_cPdf417_Lib = rb_define_class_under(rb_cPdf417, "Lib", rb_cObject); 
  rb_define_singleton_method(rb_cPdf417_Lib, "encode_text", rb_pdf417_lib_encode_text, 1);
  rb_define_singleton_method(rb_cPdf417_Lib, "new", rb_pdf417_lib_new, 1);
  rb_define_method(rb_cPdf417_Lib, "initialize", rb_pdf417_lib_init, 1);
  rb_define_method(rb_cPdf417_Lib, "codewords", rb_pdf417_lib_codewords, 0);
  rb_define_method(rb_cPdf417_Lib, "to_blob", rb_pdf417_lib_to_blob, 0);
  rb_define_method(rb_cPdf417_Lib, "bit_columns", rb_pdf417_lib_bitColumns, 0);
  rb_define_method(rb_cPdf417_Lib, "bit_length", rb_pdf417_lib_lenBits, 0);
  rb_define_method(rb_cPdf417_Lib, "code_rows", rb_pdf417_lib_codeRows, 0);
  rb_define_method(rb_cPdf417_Lib, "code_cols", rb_pdf417_lib_codeColumns, 0);
  rb_define_method(rb_cPdf417_Lib, "codeword_length", rb_pdf417_lib_lenCodewords, 0);
  rb_define_method(rb_cPdf417_Lib, "error_level", rb_pdf417_lib_errorLevel, 0);
  rb_define_method(rb_cPdf417_Lib, "aspect_ratio", rb_pdf417_lib_aspectRatio, 0);
  rb_define_method(rb_cPdf417_Lib, "y_height", rb_pdf417_lib_yHeight, 0);
  rb_define_method(rb_cPdf417_Lib, "generation_error", rb_pdf417_lib_error, 0);  
}
void Init_pdf417 ( ) { rb_cPdf417 = rb_define_class ( " " , rb_cObject ) ; rb_cPdf417_Lib = rb_define_class_under ( rb_cPdf417 , " " , rb_cObject ) ; rb_define_singleton_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_encode_text , 1 ) ; rb_define_singleton_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_new , 1 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_init , 1 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_codewords , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_to_blob , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_bitColumns , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_lenBits , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_codeRows , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_codeColumns , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_lenCodewords , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_errorLevel , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_aspectRatio , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_yHeight , 0 ) ; rb_define_method ( rb_cPdf417_Lib , " " , rb_pdf417_lib_error , 0 ) ; }
The initialization method for this module
The initialization method for this module
// Our PDF417 object     // Our PDF417::Lib object, to represent the C file