Class: Mspack::ChmDecompressor::Header
- Inherits:
-
Object
- Object
- Mspack::ChmDecompressor::Header
- Defined in:
- lib/mspack.rb,
ext/mspack_native/mspack_native.c
Instance Method Summary collapse
Instance Method Details
#filename ⇒ Object
61 62 63 64 65 |
# File 'ext/mspack_native/mspack_native.c', line 61
static VALUE chmd_header_filename(VALUE self) {
struct mschmd_header *header;
Data_Get_Struct(self, struct mschmd_header, header);
return rb_str_new2(header->filename);
}
|
#files ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'ext/mspack_native/mspack_native.c', line 67
static VALUE chmd_header_files(VALUE self) {
struct mschmd_header *header;
Data_Get_Struct(self, struct mschmd_header, header);
VALUE fileObj = rb_obj_alloc(ChmDFile);
rb_obj_call_init(fileObj, 0, NULL);
return Data_Wrap_Struct(ChmDFile, NULL, NULL, header->files);
}
|