Sha256: f5d9b1c0dee90737c5184a443a1fc67f0338b891096f51d3741a54d96b954f08

Contents?: true

Size: 732 Bytes

Versions: 63

Compression:

Stored size: 732 Bytes

Contents

#include <psych.h>

VALUE cPsychVisitorsYamlTree;

/*
 * call-seq: private_iv_get(target, prop)
 *
 * Get the private instance variable +prop+ from +target+
 */
static VALUE private_iv_get(VALUE self, VALUE target, VALUE prop)
{
    return rb_attr_get(target, rb_intern(StringValuePtr(prop)));
}

void Init_psych_yaml_tree(void)
{
    VALUE psych     = rb_define_module("Psych");
    VALUE visitors  = rb_define_module_under(psych, "Visitors");
    VALUE visitor   = rb_define_class_under(visitors, "Visitor", rb_cObject);
    cPsychVisitorsYamlTree = rb_define_class_under(visitors, "YAMLTree", visitor);

    rb_define_private_method(cPsychVisitorsYamlTree, "private_iv_get", private_iv_get, 2);
}
/* vim: set noet sws=4 sw=4: */

Version data entries

63 entries across 63 versions & 5 rubygems

Version Path
psych-2.1.1-java ext/psych/psych_yaml_tree.c
psych-2.1.1 ext/psych/psych_yaml_tree.c
psych-2.1.0-java ext/psych/psych_yaml_tree.c
psych-2.1.0 ext/psych/psych_yaml_tree.c
psych-2.0.17-java ext/psych/psych_yaml_tree.c
psych-2.0.17 ext/psych/psych_yaml_tree.c
psych-2.0.16-java ext/psych/psych_yaml_tree.c
psych-2.0.16 ext/psych/psych_yaml_tree.c
psych-2.0.15-java ext/psych/psych_yaml_tree.c
psych-2.0.15 ext/psych/psych_yaml_tree.c
psych-2.0.14-java ext/psych/psych_yaml_tree.c
psych-2.0.14 ext/psych/psych_yaml_tree.c
psych-shopifork-2.0.13 ext/psych/psych_yaml_tree.c
psych-2.0.14.pre1-java ext/psych/psych_yaml_tree.c
psych-2.0.13 ext/psych/psych_yaml_tree.c
psych-2.0.12 ext/psych/psych_yaml_tree.c
psych-2.0.11 ext/psych/psych_yaml_tree.c
psych-2.0.10 ext/psych/psych_yaml_tree.c
psych-2.0.9 ext/psych/psych_yaml_tree.c
psych-2.0.8 ext/psych/psych_yaml_tree.c