Class: String
- Inherits:
 - 
      Object
      
        
- Object
 - String
 
 
- Defined in:
 - lib/stdlib_exts/string.rb
 
Instance Method Summary collapse
Instance Method Details
#enclose_in_single_quotes ⇒ Object
      7 8 9 10  | 
    
      # File 'lib/stdlib_exts/string.rb', line 7 def enclose_in_single_quotes return "''" if nil? || empty? split(/'/, -1).map{|e| "'#{e}'"}.join("\\'") end  | 
  
#without_trailing_slash ⇒ Object
      3 4 5  | 
    
      # File 'lib/stdlib_exts/string.rb', line 3 def without_trailing_slash gsub(/\/$/, '') end  |