6 7 8 9
# File 'lib/sqlstmt/to_sql.rb', line 6 def to_sql str = gsub('\\', '\\\\').gsub('\'', '\\\'').gsub("'", "\\'") "'#{str}'" end