Method: Zlib::GzipFile::Error#inspect
- Defined in:
- ext/zlib/zlib.c
#inspect ⇒ Object
Constructs a String of the GzipFile Error
2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 |
# File 'ext/zlib/zlib.c', line 2633 static VALUE gzfile_error_inspect(VALUE error) { VALUE str = rb_call_super(0, 0); VALUE input = rb_attr_get(error, id_input); if (!NIL_P(input)) { rb_str_resize(str, RSTRING_LEN(str)-1); rb_str_cat2(str, ", input="); rb_str_append(str, rb_str_inspect(input)); rb_str_cat2(str, ">"); } return str; } |