about summary refs log tree commit homepage
path: root/lib/oldweb/_sidebar_extends.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oldweb/_sidebar_extends.rhtml')
-rw-r--r--lib/oldweb/_sidebar_extends.rhtml13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/oldweb/_sidebar_extends.rhtml b/lib/oldweb/_sidebar_extends.rhtml
new file mode 100644
index 0000000..8dab782
--- /dev/null
+++ b/lib/oldweb/_sidebar_extends.rhtml
@@ -0,0 +1,13 @@
+<%
+unless klass.extends.empty?
+%><p><b>Extended with:</b> <%
+  klass.each_extend do |ext|
+    unless String === ext.module
+%><a
+href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a><%
+    else
+%><%= ext.name %><%
+    end
+  end
+end
+%>