Created
February 6, 2013 12:15
-
-
Save snaka/4722215 to your computer and use it in GitHub Desktop.
irb を起動したときカレントディレクトリの .irbrc を読み込むようにする ref: http://qiita.com/items/276c61b0f66f913a163a
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
| # カレントディレクトリの .irbrc を読み込む | |
| current_irbrc = File.join(Dir.pwd, ".irbrc") | |
| if File.exist?(current_irbrc) | |
| load current_irbrc | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment