Class: Bkmrq::Writer
- Inherits:
-
Object
- Object
- Bkmrq::Writer
- Defined in:
- lib/bkmrq/writer.rb
Overview
Writes output to file
Class Method Summary collapse
Class Method Details
.run(formatted_bookmarks, opts) ⇒ Object
6 7 8 9 10 |
# File 'lib/bkmrq/writer.rb', line 6 def self.run(formatted_bookmarks, opts) File.open(opts[:to], 'w+') do |file| file.puts(formatted_bookmarks) end end |