class Serenity::StringLine
Public Instance Methods
convert_newlines(text)
click to toggle source
# File lib/serenity/serenity/line.rb, line 56 def convert_newlines text text.gsub("First line", '<text:line-break>') end
to_buf()
click to toggle source
# File lib/serenity/serenity/line.rb, line 52 def to_buf " _buf << (" << escape_code(@text) << ").to_s.escape_xml.convert_newlines;" end