class BlueDoc::SML::Rules::Table

Public Class Methods

match?(node) click to toggle source
# File lib/bluedoc/sml/rules/table.rb, line 5
def self.match?(node)
  tag_name(node) == "table"
end
to_html(node, opts = {}) click to toggle source
# File lib/bluedoc/sml/rules/table.rb, line 9
def self.to_html(node, opts = {})
  renderer = opts[:renderer]
  children = renderer.children_to_html(node)
  attrs = attributes(node)
  nid_attr = name_by_attrs(attrs)

  %(<table#{nid_attr}>#{children}</table>)
end