Class: Raf::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/raf2html_element.rb

Instance Method Summary collapse

Instance Method Details

#inline_parse_to_str(array) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/raf2html_element.rb', line 14

def inline_parse_to_str(array)
  str = ""
  array.each do |obj|
    str += obj.apply
  end
  str
end

#newline_to_br(str) ⇒ Object



9
10
11
# File 'lib/raf2html_element.rb', line 9

def newline_to_br(str)
  str.gsub("\n", "<br />\n")
end