Class: Minidown::DividingLineElement

Inherits:
Element
  • Object
show all
Defined in:
lib/minidown/elements/dividing_line_element.rb

Instance Attribute Summary

Attributes inherited from Element

#children, #content, #doc, #nodes

Instance Method Summary collapse

Methods inherited from Element

#blank?, #initialize, #raw_content, #raw_content=, #unparsed_lines

Methods included from HtmlHelper

#br_tag, #build_tag

Constructor Details

This class inherits a constructor from Minidown::Element

Instance Method Details

#parseObject



3
4
5
# File 'lib/minidown/elements/dividing_line_element.rb', line 3

def parse
  nodes << self
end

#to_htmlObject



7
8
9
# File 'lib/minidown/elements/dividing_line_element.rb', line 7

def to_html
  '<hr>'
end