3
/* call-seq: Psych.libyaml_version
5
* Returns the version of libyaml being used
7
static VALUE libyaml_version(VALUE module)
9
int major, minor, patch;
12
yaml_get_version(&major, &minor, &patch);
14
list[0] = INT2NUM((long)major);
15
list[1] = INT2NUM((long)minor);
16
list[2] = INT2NUM((long)patch);
18
return rb_ary_new4((long)3, list);
25
mPsych = rb_define_module("Psych");
27
rb_define_singleton_method(mPsych, "libyaml_version", libyaml_version, 0);
32
Init_psych_yaml_tree();
34
/* vim: set noet sws=4 sw=4: */