Class: Lab::Attr
- Inherits:
-
Object
- Object
- Lab::Attr
- Defined in:
- lib/lab.rb
Instance Attribute Summary collapse
-
#bg ⇒ Object
Returns the value of attribute bg.
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#fg ⇒ Object
Returns the value of attribute fg.
Instance Method Summary collapse
-
#initialize(bold = false, fg = 0, bg = 0) ⇒ Attr
constructor
A new instance of Attr.
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
#bg ⇒ Object
Returns the value of attribute bg.
63 64 65 |
# File 'lib/lab.rb', line 63 def bg @bg end |
#bold ⇒ Object
Returns the value of attribute bold.
63 64 65 |
# File 'lib/lab.rb', line 63 def bold @bold end |
#fg ⇒ Object
Returns the value of attribute fg.
63 64 65 |
# File 'lib/lab.rb', line 63 def fg @fg end |