Class: Prosereflect::HardBreak

Inherits:
Node
  • Object
show all
Defined in:
lib/prosereflect/hard_break.rb

Constant Summary collapse

PM_TYPE =
"hard_break"

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#add_child, #copy, #cut, #descendants, #eq?, #find_all, #find_children, #find_first, #initialize, #marks, #marks=, #node, #node_size, #nodes_between, #parse_content, #process_attrs_data, #raw_marks, #resolve, #text?, #to_h, #to_yaml

Constructor Details

This class inherits a constructor from Prosereflect::Node

Class Method Details

.create(marks = nil) ⇒ Object



16
17
18
# File 'lib/prosereflect/hard_break.rb', line 16

def self.create(marks = nil)
  new(marks: marks)
end

Instance Method Details

#text_contentObject



20
21
22
# File 'lib/prosereflect/hard_break.rb', line 20

def text_content
  "\n"
end