Method: RuboCop::Cop::Util.escape_string
- Defined in:
- lib/rubocop/cop/util.rb
.escape_string(string) ⇒ Object
231 232 233 |
# File 'lib/rubocop/cop/util.rb', line 231 def escape_string(string) string.inspect[1..-2].tap { |s| s.gsub!(/\\"/, '"') } end |