module Tool
Public Class Methods
escaping(target_str, chars, temp)
click to toggle source
# File lib/tool.rb, line 2 def self.escaping(target_str, chars, temp) if !temp temp = "\\$0" end target_str.gsub! "[#{chars}]", temp target_str end