Class: Argyle::StyleSheet::Style
- Inherits:
-
Object
- Object
- Argyle::StyleSheet::Style
- Defined in:
- lib/argyle/style_sheet/style.rb
Instance Attribute Summary collapse
-
#bg ⇒ Object
readonly
Returns the value of attribute bg.
-
#fg ⇒ Object
readonly
Returns the value of attribute fg.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id:, fg: nil, bg: nil) ⇒ Style
constructor
A new instance of Style.
Constructor Details
#initialize(id:, fg: nil, bg: nil) ⇒ Style
Returns a new instance of Style.
4 5 6 7 8 |
# File 'lib/argyle/style_sheet/style.rb', line 4 def initialize(id:, fg: nil, bg: nil) @id = id @fg = fg @bg = bg end |
Instance Attribute Details
#bg ⇒ Object (readonly)
Returns the value of attribute bg.
2 3 4 |
# File 'lib/argyle/style_sheet/style.rb', line 2 def bg @bg end |
#fg ⇒ Object (readonly)
Returns the value of attribute fg.
2 3 4 |
# File 'lib/argyle/style_sheet/style.rb', line 2 def fg @fg end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/argyle/style_sheet/style.rb', line 2 def id @id end |