Created
July 2, 2014 04:10
-
-
Save memememomo/e31a8d11d7697640ffa9 to your computer and use it in GitHub Desktop.
Rubyのハッシュ形式で記述された設定ファイルを読み込む ref: http://qiita.com/uchiko/items/7807d4282be29cc6d639
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
| { | |
| :username => 'hogehoge', | |
| :password => 'hugahuga', | |
| } |
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
| config = eval File.read 'config.rb' | |
| p config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment