class Raf::Element

Public Instance Methods

inline_parse_to_str(array) click to toggle source

@inline_parser.parse の配列を文字列に変換する

# File lib/raf2html_element.rb, line 13
def inline_parse_to_str(array)
  str = ""
  array.each do |obj|
    str += obj.apply
  end
  str
end
newline_to_br(str) click to toggle source
# File lib/raf2html_element.rb, line 8
def newline_to_br(str)
  str.gsub("\n", "<br />\n")
end