Class: BlueDoc::SML::Rules::Span
- Defined in:
- lib/bluedoc/sml/rules/span.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.match?(node) ⇒ Boolean
5 6 7 8 9 |
# File 'lib/bluedoc/sml/rules/span.rb', line 5 def self.match?(node) return false unless tag_name(node) == "span" attrs = attributes(node) attrs[:t] == 1 end |
.to_html(node, opts = {}) ⇒ Object
11 12 13 14 |
# File 'lib/bluedoc/sml/rules/span.rb', line 11 def self.to_html(node, opts = {}) renderer = opts[:renderer] renderer.children_to_html(node) end |