1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

fix some documents

This commit is contained in:
ser1zw 2014-01-15 00:35:20 +09:00
parent 8a4bdbfa9b
commit bd9af2dbe1
26 changed files with 937 additions and 739 deletions

View file

@ -49,6 +49,13 @@ rb_initialize(int argc, VALUE argv[], VALUE self)
void
init_ruby_class()
{
#if 0
// For documentation using YARD
VALUE opencv = rb_define_module("OpenCV");
VALUE alghorithm = rb_define_class_under(opencv, "Algorithm", rb_cObject);
VALUE face_recognizer = rb_define_class_under(opencv, "FaceRecognizer", alghorithm);
#endif
if (rb_klass)
return;
/*
@ -57,7 +64,8 @@ init_ruby_class()
* note: this comment is used by rdoc.
*/
VALUE opencv = rb_module_opencv();
rb_klass = rb_define_class_under(opencv, "FisherFaces", cFaceRecognizer::rb_class());
VALUE face_recognizer = cFaceRecognizer::rb_class();
rb_klass = rb_define_class_under(opencv, "FisherFaces", face_recognizer);
rb_define_alloc_func(rb_klass, cFaceRecognizer::allocate_facerecognizer);
rb_define_private_method(rb_klass, "initialize", RUBY_METHOD_FUNC(rb_initialize), -1);
}