Class: Markbridge::AST::Color
- Defined in:
- lib/markbridge/ast/color.rb
Overview
Represents colored text. Note: Discourse doesn’t support inline color by default, but this preserves color information for migration/custom rendering.
Instance Attribute Summary collapse
-
#color ⇒ String?
readonly
The color value (name or hex).
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(color: nil) ⇒ Color
constructor
Create a new Color element.
Methods inherited from Element
Constructor Details
#initialize(color: nil) ⇒ Color
Create a new Color element.
19 20 21 22 |
# File 'lib/markbridge/ast/color.rb', line 19 def initialize(color: nil) super() @color = color end |
Instance Attribute Details
#color ⇒ String? (readonly)
Returns the color value (name or hex).
14 15 16 |
# File 'lib/markbridge/ast/color.rb', line 14 def color @color end |