Class: Colorlib::ColorAttribute
- Inherits:
-
Object
- Object
- Colorlib::ColorAttribute
- Defined in:
- lib/colorlib/color_attribute.rb
Instance Attribute Summary collapse
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#color ⇒ Object
Returns the value of attribute color.
-
#italic ⇒ Object
Returns the value of attribute italic.
-
#underline ⇒ Object
Returns the value of attribute underline.
Instance Method Summary collapse
-
#initialize ⇒ ColorAttribute
constructor
A new instance of ColorAttribute.
Constructor Details
#initialize ⇒ ColorAttribute
Returns a new instance of ColorAttribute.
6 7 8 9 10 11 |
# File 'lib/colorlib/color_attribute.rb', line 6 def initialize @color = :default @bold = false @underline = false @italic = false end |
Instance Attribute Details
#bold ⇒ Object
Returns the value of attribute bold.
4 5 6 |
# File 'lib/colorlib/color_attribute.rb', line 4 def bold @bold end |
#color ⇒ Object
Returns the value of attribute color.
4 5 6 |
# File 'lib/colorlib/color_attribute.rb', line 4 def color @color end |
#italic ⇒ Object
Returns the value of attribute italic.
4 5 6 |
# File 'lib/colorlib/color_attribute.rb', line 4 def italic @italic end |
#underline ⇒ Object
Returns the value of attribute underline.
4 5 6 |
# File 'lib/colorlib/color_attribute.rb', line 4 def underline @underline end |