class Tco::Style
Attributes
bg[RW]
bright[RW]
fg[RW]
underline[RW]
Public Class Methods
new(fg=nil, bg=nil, bright=false, underline=false)
click to toggle source
# File lib/tco/style.rb, line 28 def initialize(fg=nil, bg=nil, bright=false, underline=false) @fg = fg @bg = bg @bright = bright @underline = underline end
Public Instance Methods
==(o)
click to toggle source
# File lib/tco/style.rb, line 47 def ==(o) @fg == o.fg && @bg == o.bg && @bright == o.bright && @underline == o.underline end
to_a()
click to toggle source
# File lib/tco/style.rb, line 35 def to_a [@fg, @bg, @bright, @underline] end
to_ary()
click to toggle source
# File lib/tco/style.rb, line 43 def to_ary to_a end
to_h()
click to toggle source
# File lib/tco/style.rb, line 39 def to_h {:fg => @fg, :bg => @bg, :bright => @bright, :underline => @underline} end