Class: HashStringFileWriter
- Inherits:
-
Object
- Object
- HashStringFileWriter
- Defined in:
- lib/sync-strings.rb
Instance Method Summary collapse
Instance Method Details
#write(hash, to_filename) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/sync-strings.rb', line 4 def write(hash, to_filename) file_format = file_format(hash) File.open(to_filename,"w") do |file| file.puts file_format end end |