Sha256: 9a5c989519b4ec849c60d7986120d33c8f2b2b681852dc68ecc396e975173724
Contents?: true
Size: 565 Bytes
Versions: 61
Compression:
Stored size: 565 Bytes
Contents
<% if show_attributes -%> [attributes] <% attrs = inspect_model.attributes -%> <% max = attrs.keys.max { |a,b| a.length <=> b.length } -%> <% attrs.keys.sort.each do |attr| -%> * <%= "%*-s: %s" % [max.length, attr, object_to_yaml(attrs[attr]).gsub(/\n/, "\n ").strip] %> <% end -%> <% end -%> <% if show_instance_variables -%> [instance variables] <% inspect_model.instance_variables.sort.each do |variable| -%> <%- next if variable == "@attributes" -%> * <%= variable %>: <%= inspect_value(inspect_model.instance_variable_get(variable)) %> <% end -%> <% end -%>
Version data entries
61 entries across 61 versions & 14 rubygems