/* * call-seq: * deprecated_attributes * * A list of deprecated attributes for this element */ static VALUE deprecated_attributes(VALUE self) { htmlElemDesc * description; Data_Get_Struct(self, htmlElemDesc, description); VALUE list = rb_ary_new(); if(NULL == description->attrs_depr) return list; int i = 0; while(description->attrs_depr[i]) { rb_ary_push(list, NOKOGIRI_STR_NEW2(description->attrs_depr[i], "UTF-8")); i++; } return list; }