class Ric::Colors::RicColor
Attributes
color[R]
Public Class Methods
new(mycol)
click to toggle source
Calls superclass method
# File lib/ric/colors.rb 258 def initialize(mycol) 259 super 260 @color = mycol 261 end
Public Instance Methods
to_html()
click to toggle source
# File lib/ric/colors.rb 268 def to_html 269 "<font color=\"#{@color}\" >#{self}</font>" 270 end
to_s()
click to toggle source
shouold become context sensitive…
# File lib/ric/colors.rb 264 def to_s 265 'RicColor: ' + self.send(@color) 266 end