Class: MarkdownFormatter::ASTNode::ContainerBlock
- Defined in:
- lib/markdown_formatter/nodes/container_block.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MarkdownFormatter::ASTNode::Base
Instance Method Details
#to_s ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/markdown_formatter/nodes/container_block.rb', line 4 def to_s str = "" case node[:type] when :blockquote str += ASTNode::BlockQuote.new(node).to_s when :ul, :ol str += ASTNode::List.new(node).to_s when :table # TODO: implements Table node. else pp node raise "Unexpected type #{node[:type]}" end str end |