module WhereableClause::Literal

Public Instance Methods

to_s() click to toggle source

Strip enclosing quotes and tranlate embedded quote patterns

# File lib/whereable_clause.rb, line 113
def to_s
  text_value
    .gsub(/\A['"]|['"]\z/, '')
    .gsub("''", "'")
    .gsub("\\'", "'")
    .gsub('\"', '"')
end