Class: Coradoc::Input::Html::Converters::PassThrough
- Inherits:
-
Base
- Object
- Base
- Coradoc::Input::Html::Converters::PassThrough
show all
- Defined in:
- lib/coradoc/html/input/converters/pass_through.rb
Instance Method Summary
collapse
Methods inherited from Base
#escape_text, #extract_leading_trailing_whitespace, #extract_title, #node_has_ancestor?, #textnode_after_start_with?, #textnode_before_end_with?, #treat, #treat_children, #treat_children_coradoc, #treat_coradoc, #unconstrained_after?, #unconstrained_before?
Instance Method Details
#convert(node, state = {}) ⇒ Object
12
13
14
|
# File 'lib/coradoc/html/input/converters/pass_through.rb', line 12
def convert(node, state = {})
to_coradoc(node, state)
end
|
#to_coradoc(node, _state = {}) ⇒ Object
8
9
10
|
# File 'lib/coradoc/html/input/converters/pass_through.rb', line 8
def to_coradoc(node, _state = {})
node.to_s
end
|