Attributes

<% ['class', 'instance'].select {|s| object.attributes[s].length > 0 }.each do |scope| %>

<%= scope.capitalize %> Attributes

<% object.attributes[scope].sort_by {|o| o.to_s.downcase }.each do |name, rw| %> <% aliases = (rw[:read] || rw[:write]).aliases %> <% if aliases.length > 0 %> <% end %> <% end %>
<%= h name %> [<%= ['read', 'write'].map {|t| rw[t] && (rw[t].is_explicit? ? t[0,1].upcase : "#{t[0,1].upcase}") }.compact.join %>] <%= rw.values.compact.first.visibility %> <%= htmlify rw.values.compact.first.docstring.summary %> <% if rw[:read] && rw[:read].tag(:return) && rw[:read].tag(:return).types %>

Returns: <%= format_return_types rw[:read] %>

<% end %>
Also known as: <% aliases.each_with_index do |obj, i| %> <%= h obj.name.to_s.sub(/=$/, '') %><%= "," if i < aliases.length - 1 %> <% end %>
<% end %>