Maintenance of Ruby 2.0.0 will end on February 24, 2016. Read more

In Files

  • zlib/zlib.c




Base class of errors that occur when processing GZIP files.



input gzipped string

Public Instance Methods

inspect() click to toggle source

Constructs a String of the GzipFile Error

               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;

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit

blog comments powered by Disqus