75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# File 'lib/opal.rb', line 75
def htdoc(lsuper=false)
a1 = "" ; a2 = ""
a1 = "<a href=\"#{self.superclass.name + ".doc.htm" rescue ""}\" style=\"color: cyan;\">" if lsuper
a2 = "</a>" if lsuper
sc = ""
sc = " < <strong style=\"color: cyan;\">" + a1 + self.superclass.name + a2 + "</strong>" if self.superclass
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: yellow; text-decoration: underline;\">\n\#{(self.methods(self == Object) - self.instance_methods(self == Object)).join(\"<br/>\\n\")}\n</div>\n<div style=\"color: red; text-decoration: underline;\">\n\#{(self.private_methods(self == Object) - self.private_instance_methods(self == Object)).join(\" private!<br/>\\n\")}\n</div>\n-- <strong style=\"color: cyan;\">\#{self.name}</strong>\#{sc} <strong style=\"color: magenta;\">instance methods</strong> --\n<div style=\"color: lime; text-decoration: underline;\">\n\#{(self.instance_methods(self == Object)).join(\"<br/>\\n\")}\n</div>\n<div style=\"color: red; text-decoration: underline;\">\n\#{(self.private_instance_methods(self == Object)).join(\" private!<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
|