Module: Tool
- Defined in:
- lib/tool.rb
Class Method Summary collapse
Class Method Details
.escaping(target_str, chars, temp) ⇒ Object
2 3 4 5 6 7 8 9 |
# 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 |