Class: BlueDoc::SML::Rules::Table
- Defined in:
- lib/bluedoc/sml/rules/table.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.match?(node) ⇒ Boolean
5 6 7 |
# File 'lib/bluedoc/sml/rules/table.rb', line 5 def self.match?(node) tag_name(node) == "table" end |
.to_html(node, opts = {}) ⇒ Object
9 10 11 12 13 14 15 16 |
# 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 |