class Argyle::StyleSheet::Base

Attributes

color_prototypes[R]
style_prototypes[R]

Public Class Methods

color(id, r:, g:, b:) click to toggle source
# File lib/argyle/style_sheet/base.rb, line 11
def color(id, r:, g:, b:)
  color_prototypes[id] = Argyle::Prototype.new(Argyle::StyleSheet::Color, {r: r, g: g, b: b})
end
style(id, **opts) click to toggle source

@param id [Symbol]

@option opts [Symbol] :fg Foreground color @option opts [Symbol] :bg Background color

# File lib/argyle/style_sheet/base.rb, line 20
def style(id, **opts)
  style_prototypes[id] = Argyle::Prototype.new(Argyle::StyleSheet::Style, opts)
end