Sha256: f0bb60f385c81fcbb45432ff1fa4f7ec264757d9fa6c4633986bdab14f26abe8
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
/* Document-class: <%= full_class_name %> <%= description %> */ cT = rb_define_class_under(<%=ns_var%>, "<%=class_name%>", cNArray); <% for x in class_alias %> // alias of <%=class_name%> rb_define_const(<%=ns_var%>, "<%=x%>", <%=type_var%>); <% end %> hCast = rb_hash_new(); rb_define_const(cT, "UPCAST", hCast); rb_hash_aset(hCast, rb_cArray, cT); <% for x in upcast %> <%= x %><% end %> rb_obj_freeze(hCast); <% @children.each do |m| %> <%= m.init_def %><% end %> rb_define_singleton_method(cT, "[]", <%=find("cast").c_func%>, -2);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
numo-narray-0.9.2.1 | ext/numo/narray/gen/tmpl/init_class.c |