Sha256: 93c15ce98c90bcd4b931ef012dcf6ceff37cbad496202dc0fd724faa97663673
Contents?: true
Size: 451 Bytes
Versions: 5
Compression:
Stored size: 451 Bytes
Contents
#include "hash.h" void hash_attributes_writer(VALUE obj, VALUE attributes, EachAttributeFunc write_value, VALUE writer) { long i; for (i = 0; i < RARRAY_LEN(attributes); i++) { volatile VALUE raw_attribute = RARRAY_AREF(attributes, i); Attribute attribute = attribute_read(raw_attribute); write_value(writer, attr_name_for_serialization(attribute), rb_hash_aref(obj, attribute->name_str), Qfalse); } }
Version data entries
5 entries across 5 versions & 1 rubygems