Class: BlueDoc::SML::Rules::Text
- Defined in:
- lib/bluedoc/sml/rules/text.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.match?(node) ⇒ Boolean
6 7 8 |
# File 'lib/bluedoc/sml/rules/text.rb', line 6 def self.match?(node) node.is_a?(String) end |
.to_html(node, opts = {}) ⇒ Object
10 11 12 |
# File 'lib/bluedoc/sml/rules/text.rb', line 10 def self.to_html(node, opts = {}) ERB::Util.html_escape(node) end |