Module: TomlRB::MultilineString

Defined in:
lib/toml-rb/string.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



49
50
51
52
53
54
55
56
57
# 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