Class: Markbridge::AST::Spoiler
- Defined in:
- lib/markbridge/ast/spoiler.rb
Overview
Represents a spoiler element (hidden content).
Instance Attribute Summary collapse
-
#title ⇒ String?
readonly
The spoiler title/label.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(title: nil) ⇒ Spoiler
constructor
Create a new Spoiler element.
Methods inherited from Element
Constructor Details
#initialize(title: nil) ⇒ Spoiler
Create a new Spoiler element.
21 22 23 24 |
# File 'lib/markbridge/ast/spoiler.rb', line 21 def initialize(title: nil) super() @title = title end |
Instance Attribute Details
#title ⇒ String? (readonly)
Returns the spoiler title/label.
16 17 18 |
# File 'lib/markbridge/ast/spoiler.rb', line 16 def title @title end |