Class: TipTap::Nodes::HorizontalRule

Inherits:
TipTap::Node show all
Defined in:
lib/tip_tap/nodes/horizontal_rule.rb

Instance Attribute Summary

Attributes included from HtmlRenderable

#output_buffer

Attributes included from HasContent

#attrs, #content

Instance Method Summary collapse

Methods included from PlainTextRenderable

#to_plain_text

Methods included from JsonRenderable

#to_h

Methods included from HtmlRenderable

#html_class_name, #html_tag, included

Methods included from HasContent

#add_content, #blank?, #each, #find_node, included, #initialize, #size

Methods included from Registerable

included, #type_name

Instance Method Details

#include_empty_content_in_json?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/tip_tap/nodes/horizontal_rule.rb', line 10

def include_empty_content_in_json?
  false
end

#to_htmlObject



14
15
16
# File 'lib/tip_tap/nodes/horizontal_rule.rb', line 14

def to_html
  tag.hr
end