Method: Psych.libyaml_version

Defined in:
psych.c

.libyaml_versionObject

Returns the version of libyaml being used



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'psych.c', line 7

static VALUE libyaml_version(VALUE module)
{
    int major, minor, patch;
    VALUE list[3];

    yaml_get_version(&major, &minor, &patch);

    list[0] = INT2NUM(major);
    list[1] = INT2NUM(minor);
    list[2] = INT2NUM(patch);

    return rb_ary_new4((long)3, list);
}