Class: MarkdownUI::StandardMessage
- Inherits:
-
Object
- Object
- MarkdownUI::StandardMessage
- Defined in:
- lib/markdown-ui/message/standard_message.rb
Instance Method Summary collapse
-
#initialize(content, klass = nil) ⇒ StandardMessage
constructor
A new instance of StandardMessage.
- #render ⇒ Object
Constructor Details
#initialize(content, klass = nil) ⇒ StandardMessage
Returns a new instance of StandardMessage.
5 6 7 8 |
# File 'lib/markdown-ui/message/standard_message.rb', line 5 def initialize(content, klass = nil) @klass = klass @content = content end |
Instance Method Details
#render ⇒ Object
10 11 12 13 14 15 |
# File 'lib/markdown-ui/message/standard_message.rb', line 10 def render klass = "ui #{@klass} message" content = MarkdownUI::Content::Parser.new(@content).parse MarkdownUI::StandardTag.new(content, klass).render end |