Class: MarkdownUI::Content::List
- Inherits:
-
Object
- Object
- MarkdownUI::Content::List
- Defined in:
- lib/markdown-ui/content/list.rb
Instance Method Summary collapse
-
#initialize(content, klass = nil, type = nil, data = nil) ⇒ List
constructor
A new instance of List.
- #render ⇒ Object
Constructor Details
#initialize(content, klass = nil, type = nil, data = nil) ⇒ List
Returns a new instance of List.
6 7 8 9 10 11 |
# File 'lib/markdown-ui/content/list.rb', line 6 def initialize(content, klass = nil, type = nil, data = nil) @content = content @klass = klass @type = type @data = data end |
Instance Method Details
#render ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/markdown-ui/content/list.rb', line 13 def render klass = "#{@klass} list" content = @content.strip type = @type data = @data MarkdownUI::ListTag.new(content, klass, type, data).render end |