Glimmer::Style::StylePrimitive
StylePrimitive represents styling attributes that can be applied to text.
Use the fluent with_* methods to build styles:
style = StylePrimitive.new
.with_foreground(ANSI256Color.new(39))
.with_bold
.with_prefix("## ")
Constructors
Instance methods
background
Sourcebold?
Sourceforeground
Sourceitalic?
Sourcemerge(other : StylePrimitive) : StylePrimitive
Returns a new StylePrimitive that combines this style with another.
The other style takes precedence for any attributes it sets.
overline?
Sourceprefix
SourceRenders the given text with this style applied.
strikethrough?
Sourcesuffix
Sourceunderline?
Sourcewith_background(color : Color) : StylePrimitive
Sourcewith_foreground(color : Color) : StylePrimitive
Source