Class: Mspack::ChmDecompressor::File
- Inherits:
-
Object
- Object
- Mspack::ChmDecompressor::File
- Defined in:
- lib/mspack/chm_decompressor.rb,
ext/mspack_native/mspack_native.c
Instance Method Summary collapse
Instance Method Details
#filename ⇒ Object
76 77 78 79 80 |
# File 'ext/mspack_native/mspack_native.c', line 76 static VALUE chmd_file_filename(VALUE self) { struct mschmd_file *file; Data_Get_Struct(self, struct mschmd_file, file); return rb_str_new2(file->filename); } |
#next ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'ext/mspack_native/mspack_native.c', line 82 static VALUE chmd_file_next(VALUE self) { struct mschmd_file *file; Data_Get_Struct(self, struct mschmd_file, file); struct mschmd_file *next = file->next; if (next == NULL) { return Qnil; } VALUE nextObj = rb_obj_alloc(ChmDFile); rb_obj_call_init(nextObj, 0, NULL); return Data_Wrap_Struct(ChmDFile, NULL, NULL, next); } |