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

Version Path
panko_serializer-0.7.7 ext/panko_serializer/attributes_writer/plain.c
panko_serializer-0.7.6 ext/panko_serializer/attributes_writer/plain.c
panko_serializer-0.7.5 ext/panko_serializer/attributes_writer/plain.c
panko_serializer-0.7.4 ext/panko_serializer/attributes_writer/plain.c
panko_serializer-0.7.3 ext/panko_serializer/attributes_writer/plain.c