Created
          August 20, 2009 01:47 
        
      - 
      
- 
        Save miyucy/170766 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
    
  
  
    
  | module Kernel | |
| def __DIR__ | |
| File.dirname(caller(0)[1]) | |
| end | |
| end | |
| puts __FILE__ | |
| puts __DIR__ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment