about summary refs log tree commit homepage
path: root/lib/oldweb/_sidebar_parent.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oldweb/_sidebar_parent.rhtml')
-rw-r--r--lib/oldweb/_sidebar_parent.rhtml13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/oldweb/_sidebar_parent.rhtml b/lib/oldweb/_sidebar_parent.rhtml
new file mode 100644
index 0000000..9323101
--- /dev/null
+++ b/lib/oldweb/_sidebar_parent.rhtml
@@ -0,0 +1,13 @@
+<%
+# having Object as parent is boring
+if klass.type == 'class' && klass.superclass != 'Object'
+%><p><b>Parent:</b> <%
+  if klass.superclass and not String === klass.superclass
+%><a
+href="<%= klass.aref_to klass.superclass.path %>"><%=
+    klass.superclass.full_name %></a><%
+  else
+%><%= klass.superclass %><%
+  end
+end
+%>