43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/opal.rb', line 43
def htdoc(lsuper=false)
sc = " < <strong style=\"color: cyan;\">" + "Module" + "</strong>"
return "<div style=\"background-color: black; color: white; font-family: Courier New; padding: 7px;\">\n-- <strong style=\"color: cyan;\">\#{self.name}</strong>\#{sc} <strong style=\"color: magenta;\">methods</strong> --\n<div style=\"color: lime; text-decoration: underline;\">\n\#{(self.instance_methods(false)).join(\"<br/>\\n\")}\n</div>\n<div style=\"color: red; text-decoration: underline;\">\n\#{self.private_instance_methods(false).join(\"<br/>\\n\")}\n</div>\n-- <strong style=\"color: cyan;\">\#{self.name}</strong>\#{sc} <strong style=\"color: magenta;\">namespaces</strong> --\n<div style=\"color: lightblue; text-decoration: underline;\">\n\#{(self.constants).join(\"<br/>\\n\")}\n</div>\n</div>\n"
end
|