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 <<EOF
<div style="background-color: black; color: white; font-family: Courier New; padding: 7px;">
-- <strong style="color: cyan;">#{self.name}</strong>#{sc} <strong style="color: magenta;">methods</strong> --
<div style="color: yellow; text-decoration: underline;">
#{(self.methods(self == Object) - self.instance_methods(self == Object)).join("<br/>\n")}
</div>
<div style="color: red; text-decoration: underline;">
#{(self.private_methods(self == Object) - self.private_instance_methods(self == Object)).join(" private!<br/>\n")}
</div>
-- <strong style="color: cyan;">#{self.name}</strong>#{sc} <strong style="color: magenta;">instance methods</strong> --
<div style="color: lime; text-decoration: underline;">
#{(self.instance_methods(self == Object)).join("<br/>\n")}
</div>
<div style="color: red; text-decoration: underline;">
#{(self.private_instance_methods(self == Object)).join(" private!<br/>\n")}
</div>
-- <strong style="color: cyan;">#{self.name}</strong>#{sc} <strong style="color: magenta;">namespaces</strong> --
<div style="color: lightblue; text-decoration: underline;">
#{(self.constants).join("<br/>\n")}
</div>
</div>
EOF
end
|