class MarkdownFormatter::ASTNode::ContainerBlock
Public Instance Methods
to_s()
click to toggle source
# 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