module TomlRB::MultilineString

Public Instance Methods

value() click to toggle source
# File lib/toml-rb/string.rb, line 49
def value
  return '' if captures[:text].empty?
  aux = captures[:text].first.value

  # Remove spaces on multilined Singleline strings
  aux.gsub!(/\\r?\n[\n\t\r ]*/, '')

  TomlRB::BasicString.transform_escaped_chars aux
end