Class: RSokoban::Install
- Inherits:
-
Object
- Object
- RSokoban::Install
- Defined in:
- lib/rsokoban/install.rb
Class Method Summary collapse
Class Method Details
.create_config(path) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/rsokoban/install.rb', line 12 def self.create_config path self.create_folder path config = {'skin' => 'BlueGranite', 'set' => 'microban.xsb', 'level' => 1} f = File.new(File.join(path, 'config'), "w") f.write config.to_yaml f.close end |
.create_folder(path) ⇒ Object
8 9 10 |
# File 'lib/rsokoban/install.rb', line 8 def self.create_folder path FileUtils.makedirs path end |