Class: Thaum::Rendering::Style
- Inherits:
-
Data
- Object
- Data
- Thaum::Rendering::Style
- Defined in:
- lib/thaum/rendering/style.rb
Instance Attribute Summary collapse
-
#bg ⇒ Object
readonly
Returns the value of attribute bg.
-
#bold ⇒ Object
readonly
Returns the value of attribute bold.
-
#dim ⇒ Object
readonly
Returns the value of attribute dim.
-
#fg ⇒ Object
readonly
Returns the value of attribute fg.
-
#italic ⇒ Object
readonly
Returns the value of attribute italic.
-
#underline ⇒ Object
readonly
Returns the value of attribute underline.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(fg: nil, bg: nil, bold: false, italic: false, underline: false, dim: false) ⇒ Style
constructor
A new instance of Style.
Constructor Details
#initialize(fg: nil, bg: nil, bold: false, italic: false, underline: false, dim: false) ⇒ Style
Returns a new instance of Style.
6 7 8 |
# File 'lib/thaum/rendering/style.rb', line 6 def initialize(fg: nil, bg: nil, bold: false, italic: false, underline: false, dim: false) super end |
Instance Attribute Details
#bg ⇒ Object (readonly)
Returns the value of attribute bg
5 6 7 |
# File 'lib/thaum/rendering/style.rb', line 5 def bg @bg end |
#bold ⇒ Object (readonly)
Returns the value of attribute bold
5 6 7 |
# File 'lib/thaum/rendering/style.rb', line 5 def bold @bold end |
#dim ⇒ Object (readonly)
Returns the value of attribute dim
5 6 7 |
# File 'lib/thaum/rendering/style.rb', line 5 def dim @dim end |
#fg ⇒ Object (readonly)
Returns the value of attribute fg
5 6 7 |
# File 'lib/thaum/rendering/style.rb', line 5 def fg @fg end |
#italic ⇒ Object (readonly)
Returns the value of attribute italic
5 6 7 |
# File 'lib/thaum/rendering/style.rb', line 5 def italic @italic end |
#underline ⇒ Object (readonly)
Returns the value of attribute underline
5 6 7 |
# File 'lib/thaum/rendering/style.rb', line 5 def underline @underline end |
Instance Method Details
#empty? ⇒ Boolean
10 |
# File 'lib/thaum/rendering/style.rb', line 10 def empty? = !fg && !bg && !bold && !italic && !underline && !dim |