Class: Coradoc::Input::Html::Converters::Head
- Inherits:
-
Base
- Object
- Base
- Coradoc::Input::Html::Converters::Head
show all
- Defined in:
- lib/coradoc/input/html/converters/head.rb
Instance Method Summary
collapse
Methods inherited from Base
#convert, #extract_leading_trailing_whitespace, #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
11
12
13
14
15
16
|
# File 'lib/coradoc/input/html/converters/head.rb', line 11
def (node)
title = node.at("./title")
return "(???)" if title.nil?
title.text
end
|
#to_coradoc(node, _state = {}) ⇒ Object
6
7
8
9
|
# File 'lib/coradoc/input/html/converters/head.rb', line 6
def to_coradoc(node, _state = {})
title = (node)
Coradoc::Element::.new(title)
end
|