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
| -- TLC - The Tiny Lua Cocoa bridge | |
| -- Note: Only tested with LuaJit 2 Beta 9 on x86_64 with OS X >=10.7.3 & iPhone 4 with iOS 5 | |
| -- Copyright (c) 2012, Fjölnir Ásgeirsson | |
| -- Permission to use, copy, modify, and/or distribute this software for any | |
| -- purpose with or without fee is hereby granted, provided that the above | |
| -- copyright notice and this permission notice appear in all copies. | |
| -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
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 = SimpleConfig.new | |
| config.load_file File.join(File.dirname(__FILE__), "sample.rb") | |
| config.get(:foo) #=> "bar" | |
| config[:save_path] #=> "/var/www/download" |