Class: PolyglotIos::IO::Config
- Inherits:
-
Object
- Object
- PolyglotIos::IO::Config
- Defined in:
- lib/ios_polyglot_cli/io/config.rb
Constant Summary collapse
- CONFIG_FILE_PATH =
"#{Dir.pwd}/polyglot.yml".freeze
Class Method Summary collapse
Class Method Details
.read ⇒ Object
12 13 14 |
# File 'lib/ios_polyglot_cli/io/config.rb', line 12 def read YAML.load_file(CONFIG_FILE_PATH) end |
.write(data) ⇒ Object
8 9 10 |
# File 'lib/ios_polyglot_cli/io/config.rb', line 8 def write(data) File.open(CONFIG_FILE_PATH, 'w') { |file| YAML.dump(data, file) } end |