Class: BlueDoc::SML::Rules::Span

Inherits:
Base
  • Object
show all
Defined in:
lib/bluedoc/sml/rules/span.rb

Constant Summary

Constants inherited from Base

Base::INDENT_PX

Class Method Summary collapse

Methods inherited from Base

to_text

Class Method Details

.match?(node) ⇒ Boolean

Returns:

  • (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