Class: Storyblok::Richtext::Nodes::HorizontalRule
- Defined in:
- lib/storyblok/richtext/html_renderer/nodes/horizontal_rule.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
#html, #initialize, #tag, #text
Constructor Details
This class inherits a constructor from Storyblok::Richtext::Nodes::Node
Instance Method Details
#matching ⇒ Object
5 6 7 |
# File 'lib/storyblok/richtext/html_renderer/nodes/horizontal_rule.rb', line 5 def matching @node['type'] === 'horizontal_rule' end |
#single_tag ⇒ Object
9 10 11 |
# File 'lib/storyblok/richtext/html_renderer/nodes/horizontal_rule.rb', line 9 def single_tag 'hr' end |