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