class Minidown::Element

Attributes

children[RW]
content[RW]
doc[RW]
nodes[RW]

Public Class Methods

new(doc, content) click to toggle source
# File lib/minidown/element.rb, line 21
def initialize doc, content
  @doc = doc
  @nodes = doc.nodes
  @content = content
  @children = []
end

Public Instance Methods

blank?() click to toggle source
# File lib/minidown/element.rb, line 36
def blank?
  false
end
parse() click to toggle source
# File lib/minidown/element.rb, line 28
def parse
  raise NotImplementedError, 'method parse not implemented'
end
raw_content() click to toggle source
# File lib/minidown/element.rb, line 9
def raw_content
  @content
end
raw_content=(str) click to toggle source
# File lib/minidown/element.rb, line 13
def raw_content= str
  @content = str
end
to_html() click to toggle source
# File lib/minidown/element.rb, line 32
def to_html
  raise NotImplementedError, 'method to_html not implemented'
end
unparsed_lines() click to toggle source
# File lib/minidown/element.rb, line 17
def unparsed_lines
  doc.lines
end