Class: Markbridge::AST::Align
- Defined in:
- lib/markbridge/ast/align.rb
Overview
Represents aligned text (left, center, right, justify). Note: Discourse has limited support for alignment.
Instance Attribute Summary collapse
-
#alignment ⇒ String?
readonly
The alignment value (left, center, right, justify).
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(alignment: nil) ⇒ Align
constructor
Create a new Align element.
Methods inherited from Element
Constructor Details
#initialize(alignment: nil) ⇒ Align
Create a new Align element.
18 19 20 21 |
# File 'lib/markbridge/ast/align.rb', line 18 def initialize(alignment: nil) super() @alignment = alignment end |
Instance Attribute Details
#alignment ⇒ String? (readonly)
Returns the alignment value (left, center, right, justify).
13 14 15 |
# File 'lib/markbridge/ast/align.rb', line 13 def alignment @alignment end |