Created
          July 24, 2010 05:32 
        
      - 
      
 - 
        
Save ecavazos/488436 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Alias each_line to each so your ruby 1.8 code will still | |
| # work in 1.9 | |
| unless ''.respond_to?(:each) | |
| String.class_eval do | |
| alias_method :each, :each_line | |
| end | |
| end | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment