Class: Charming::Presentation::Components::Markdown
- Inherits:
-
Charming::Presentation::Component
- Object
- View
- Charming::Presentation::Component
- Charming::Presentation::Components::Markdown
- Defined in:
- lib/charming/presentation/components/markdown.rb
Instance Method Summary collapse
-
#initialize(content:, width: nil, theme: nil, syntax_highlighting: true) ⇒ Markdown
constructor
A new instance of Markdown.
- #render ⇒ Object
Methods inherited from View
Constructor Details
#initialize(content:, width: nil, theme: nil, syntax_highlighting: true) ⇒ Markdown
Returns a new instance of Markdown.
7 8 9 10 11 12 |
# File 'lib/charming/presentation/components/markdown.rb', line 7 def initialize(content:, width: nil, theme: nil, syntax_highlighting: true) super(theme: theme) @content = content @width = width @syntax_highlighting = syntax_highlighting end |