Class: String
- Inherits:
 - 
      Object
      
        
- Object
 - String
 
 
- Defined in:
 - lib/core_extensions/string.rb
 
Instance Method Summary collapse
- 
  
    
      #strip_heredoc  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Implementation from active_support git.io/vNVlN.
 
Instance Method Details
#strip_heredoc ⇒ Object
Implementation from active_support git.io/vNVlN
      3 4 5  | 
    
      # File 'lib/core_extensions/string.rb', line 3 def strip_heredoc gsub(/^#{scan(/^[ \t]*(?=\S)/).min}/, ''.freeze) end  |