Sha256: efd48138a377b729f6f1324f7cc7e93b10e8a5aa658774c0cb135028114c5a80

Contents?: true

Size: 840 Bytes

Versions: 11

Compression:

Stored size: 840 Bytes

Contents

<% found_method = false %>
<% object.inheritance_tree(true)[1..-1].each do |superclass| %>
  <% next if superclass.is_a?(YARD::CodeObjects::Proxy) %>
  <% attribs = superclass.attributes[:instance] %>
  <% next if attribs.size == 0 %>
  <% if attr_listing.size == 0 && !found_method %><h2>Instance Attribute Summary</h2><% end %>
  <% found_method = true %>
  <h3 class="inherited">Attributes <%= superclass.type == :class ? 'inherited' : 'included' %> from <%= linkify superclass %></h3>
  <p class="inherited"><%=
    attribs.sort_by {|args| args.first.to_s }.collect do |args|
      name, methods = args
      method = methods[:read] || methods[:write]
      name = method.name.to_s.gsub(/^#/,'') if superclass.type == :module && object.class_mixins.include?(superclass)
      linkify(method, name)
    end.join(", ")
  %></p>
<% end %>

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
nutshell-crm-0.0.6.alpha vendor/bundle/gems/yard-0.7.4/templates/default/module/html/inherited_attributes.erb
nutshell-crm-0.0.5 vendor/bundle/gems/yard-0.7.4/templates/default/module/html/inherited_attributes.erb
nutshell-crm-0.0.4 vendor/bundle/gems/yard-0.7.4/templates/default/module/html/inherited_attributes.erb
nutshell-crm-0.0.3 vendor/bundle/gems/yard-0.7.4/templates/default/module/html/inherited_attributes.erb
nutshell-crm-0.0.2 vendor/bundle/gems/yard-0.7.4/templates/default/module/html/inherited_attributes.erb
yard-0.7.4 templates/default/module/html/inherited_attributes.erb
yard-0.7.3 templates/default/module/html/inherited_attributes.erb
vanity-1.7.1 vendor/ruby/1.9.1/gems/yard-0.7.2/templates/default/module/html/inherited_attributes.erb
yard-0.7.2 templates/default/module/html/inherited_attributes.erb
yard-0.7.1 templates/default/module/html/inherited_attributes.erb
yard-0.7.0 templates/default/module/html/inherited_attributes.erb