Sha256: 4ce3337fe6bf6ca76090db76f11268e0474bf489efcf68326e8f4497ccf75edb
Contents?: true
Size: 453 Bytes
Versions: 5
Compression:
Stored size: 453 Bytes
Contents
#include "plain.h" void plain_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_funcall(obj, attribute->name_id, 0), Qfalse); } }
Version data entries
5 entries across 5 versions & 1 rubygems