lib/fig/tokenized_string/plain_segment.rb
# Should not be invoked if original string was single quoted.
Should not be invoked if original string was single quoted.
Should not be invoked if original string was single quoted .
def to_single_quoted_string()
    return \
      @raw_value.gsub(%r< \\ (.) >xm, '\1').gsub(%r< ([\\']) >xm, '\\\\\1')
  end
def to_single_quoted_string ( ) return @raw_value . gsub ( %r< \\  (.)  >xm , '\1' ) . gsub ( %r<  ([ \\ '])  >xm , '\\\\\1' ) end
Should not be invoked if original string was single quoted.
Should not be invoked if original string was single quoted .
# Raw value will have come from a non-single quoted string, so we unescape # everything (including backslashes) and then escape backslashes and single # quotes (which cannot be escaped outside of single quotes).