Class: Coradoc::Element::LineBreak

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/element/text_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#children_accessors, children_accessors, declare_children, #simplify_block_content, visit, #visit

Constructor Details

#initialize(line_break) ⇒ LineBreak

Returns a new instance of LineBreak.



77
78
79
# File 'lib/coradoc/element/text_element.rb', line 77

def initialize(line_break)
  @line_break = line_break
end

Instance Attribute Details

#line_breakObject (readonly)

Returns the value of attribute line_break.



75
76
77
# File 'lib/coradoc/element/text_element.rb', line 75

def line_break
  @line_break
end

Instance Method Details

#to_adocObject



81
82
83
# File 'lib/coradoc/element/text_element.rb', line 81

def to_adoc
  @line_break
end