Class: MarkdownFormatter::ASTNode::HTMLElement

Inherits:
Base
  • Object
show all
Defined in:
lib/markdown_formatter/nodes/html_element.rb

Instance Attribute Summary

Attributes inherited from Base

#node

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from MarkdownFormatter::ASTNode::Base

Instance Method Details

#to_sObject



4
5
6
# File 'lib/markdown_formatter/nodes/html_element.rb', line 4

def to_s
  "%s%s</%s>" % [node.dig(:options, :opening_tag), Paragraph.new(node).to_s, node[:value]]
end