Class: MarkdownUI::Content::Custom
- Inherits:
-
Object
- Object
- MarkdownUI::Content::Custom
- Defined in:
- lib/markdown-ui/content/custom.rb
Instance Method Summary collapse
-
#initialize(content, klass = nil) ⇒ Custom
constructor
A new instance of Custom.
- #render ⇒ Object
Constructor Details
#initialize(content, klass = nil) ⇒ Custom
Returns a new instance of Custom.
6 7 8 9 |
# File 'lib/markdown-ui/content/custom.rb', line 6 def initialize(content, klass = nil) @content = content @klass = klass end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/markdown-ui/content/custom.rb', line 11 def render @content.strip end |