W3cubDocs

/Ruby 2.4

class Zlib::GzipFile::Error

Parent:
Zlib::Error

Base class of errors that occur when processing GZIP files.

Attributes

input[R]

input gzipped string

Public Instance Methods

inspect() Show 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;
}

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.