Sha256: 7a702d143c3020ffb48be4c48842b594686c6fedfd7f781f98b82212f61d7528

Contents?: true

Size: 733 Bytes

Versions: 27

Compression:

Stored size: 733 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(StringValueCStr(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

27 entries across 27 versions & 3 rubygems

Version Path
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/psych-3.1.0/ext/psych/psych_yaml_tree.c
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/psych-3.1.0/ext/psych/psych_yaml_tree.c
psych-3.1.0-x86-mingw32 ext/psych/psych_yaml_tree.c
psych-3.1.0-x64-mingw32 ext/psych/psych_yaml_tree.c
psych-3.1.0-java ext/psych/psych_yaml_tree.c
psych-3.1.0 ext/psych/psych_yaml_tree.c
psych-3.0.3-x86-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.3-x64-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.3 ext/psych/psych_yaml_tree.c
psych-3.0.3-java ext/psych/psych_yaml_tree.c
psych-3.0.3.pre5-java ext/psych/psych_yaml_tree.c
psych-3.0.3.pre4-java ext/psych/psych_yaml_tree.c
psych-3.0.3.pre3-x64-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.3.pre3-java ext/psych/psych_yaml_tree.c
psych-3.0.3.pre3 ext/psych/psych_yaml_tree.c
psych-3.0.3.pre2-x86-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.3.pre2-x64-mingw32 ext/psych/psych_yaml_tree.c
psych-3.0.3.pre2-java ext/psych/psych_yaml_tree.c
psych-3.0.3.pre2 ext/psych/psych_yaml_tree.c
psych-3.0.3.pre1 ext/psych/psych_yaml_tree.c