Class: Avm::Launcher::Context::Settings
- Inherits:
-
Object
- Object
- Avm::Launcher::Context::Settings
- Includes:
- EacRubyUtils::SimpleCache
- Defined in:
- lib/avm/launcher/context/settings.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ Settings
constructor
A new instance of Settings.
- #instance_settings(instance) ⇒ Object
Constructor Details
#initialize(file) ⇒ Settings
Returns a new instance of Settings.
13 14 15 16 17 18 19 |
# File 'lib/avm/launcher/context/settings.rb', line 13 def initialize(file) unless ::File.exist?(file) ::FileUtils.mkdir_p(::File.dirname(file)) ::File.write(file, {}.to_yaml) end @data = YAML.load_file(file) end |