Class: ProconBypassMan::YamlWriter
- Inherits:
-
Object
- Object
- ProconBypassMan::YamlWriter
- Defined in:
- lib/procon_bypass_man/support/yaml_writer.rb
Class Method Summary collapse
Class Method Details
.write(path:, content:) ⇒ void
This method returns an undefined value.
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/procon_bypass_man/support/yaml_writer.rb', line 3 def self.write(path: , content: ) File.write( path, content.transform_values { |x| case x when String x.gsub("\r\n", "\n") else x end }.to_yaml ) end |