Hello, anyone can help me with the conversion of single quotes in a string to double quotes? Am new to Ruby programming and still learning around on how to use it properly.
I have an example in Delphi, which I want to make compatible with Ruby:
function ReplaceSingleQuote(AText: String): String;
begin
Result := '';
if Length(AText) = 0 then
Exit;
Result := StringReplace(AText, '''', '''''', [rfReplaceAll]);
end;