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-with-location-3.0.0.beta3 ext/psych/psych_yaml_tree.c
psych-3.0.0.beta3-x86-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.0.beta3-x64-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.0.beta3-java ext/psych/psych_yaml_tree.c
psych-3.0.0.beta3 ext/psych/psych_yaml_tree.c
psych-3.0.0.beta2-x64-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.0.beta2-x86-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.0.beta2-java ext/psych/psych_yaml_tree.c
psych-3.0.0.beta2 ext/psych/psych_yaml_tree.c
psych-2.2.4-java ext/psych/psych_yaml_tree.c
psych-2.2.4 ext/psych/psych_yaml_tree.c
psych-2.2.3-java ext/psych/psych_yaml_tree.c
psych-2.2.3 ext/psych/psych_yaml_tree.c
ruby-compiler-0.1.1 vendor/ruby/ext/psych/psych_yaml_tree.c
psych-2.2.2-java ext/psych/psych_yaml_tree.c
psych-2.2.2 ext/psych/psych_yaml_tree.c
psych-2.2.1-java ext/psych/psych_yaml_tree.c
psych-2.2.1 ext/psych/psych_yaml_tree.c
psych-2.2.0-java ext/psych/psych_yaml_tree.c
psych-2.2.0 ext/psych/psych_yaml_tree.c