Ruby
3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
ext
psych
psych_yaml_tree.c
Go to the documentation of this file.
1
#include <
psych.h
>
2
3
VALUE
cPsychVisitorsYamlTree
;
4
5
void
Init_psych_yaml_tree
(
void
)
6
{
7
VALUE
psych =
rb_define_module
(
"Psych"
);
8
VALUE
visitors =
rb_define_module_under
(psych,
"Visitors"
);
9
VALUE
visitor =
rb_define_class_under
(visitors,
"Visitor"
,
rb_cObject
);
10
cPsychVisitorsYamlTree
=
rb_define_class_under
(visitors,
"YAMLTree"
, visitor);
11
}
12
/* vim: set noet sws=4 sw=4: */
rb_define_module_under
VALUE rb_define_module_under(VALUE outer, const char *name)
Definition:
class.c:914
Init_psych_yaml_tree
void Init_psych_yaml_tree(void)
Definition:
psych_yaml_tree.c:5
rb_define_module
VALUE rb_define_module(const char *name)
Definition:
class.c:887
psych.h
rb_cObject
VALUE rb_cObject
Object class.
Definition:
object.c:50
VALUE
unsigned long VALUE
Definition:
value.h:38
cPsychVisitorsYamlTree
VALUE cPsychVisitorsYamlTree
Definition:
psych_yaml_tree.c:3
rb_define_class_under
VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super)
Defines a class under the namespace of outer.
Definition:
class.c:809
Generated by
1.8.17