Class: Argyle::StyleSheet::Style

Inherits:
Object
  • Object
show all
Defined in:
lib/argyle/style_sheet/style.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bgObject (readonly)

Returns the value of attribute bg.



2
3
4
# File 'lib/argyle/style_sheet/style.rb', line 2

def bg
  @bg
end

#fgObject (readonly)

Returns the value of attribute fg.



2
3
4
# File 'lib/argyle/style_sheet/style.rb', line 2

def fg
  @fg
end

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/argyle/style_sheet/style.rb', line 2

def id
  @id
end