class

Obelisk::StyleEntry

Inherits Reference < Object

Style entry for a token type

Constructors

new(color : Color | Nil = nil, background : Color | Nil = nil, bold : Trilean = Trilean::Pass, italic : Trilean = Trilean::Pass, underline : Trilean = Trilean::Pass, no_inherit : Bool = false)
Source

Instance methods

background
Source
bold
Source
bold?

Check if bold is enabled

Source
color
Source
has_styles?

Check if this entry has any styling

Source
italic
Source
italic?

Check if italic is enabled

Source
merge(other : StyleEntry) : StyleEntry

Merge with another style entry (other takes precedence)

Source
no_inherit
Source
underline
Source
underline?

Check if underline is enabled

Source