Class: Lab::Attr

Inherits:
Object
  • Object
show all
Defined in:
lib/lab.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bold = false, fg = 0, bg = 0) ⇒ Attr

Returns a new instance of Attr.



64
65
66
# File 'lib/lab.rb', line 64

def initialize bold = false, fg = 0, bg = 0
   @bold, @fg, @bg = bold, fg, bg
end

Instance Attribute Details

#bgObject

Returns the value of attribute bg.



63
64
65
# File 'lib/lab.rb', line 63

def bg
  @bg
end

#boldObject

Returns the value of attribute bold.



63
64
65
# File 'lib/lab.rb', line 63

def bold
  @bold
end

#fgObject

Returns the value of attribute fg.



63
64
65
# File 'lib/lab.rb', line 63

def fg
  @fg
end