Module: Gemmy::Patches::ObjectPatch::InstanceMethods::Write
- Defined in:
- lib/gemmy/patches/object_patch.rb
Overview
Writes a string to a file
Instance Method Summary collapse
Instance Method Details
#write(file:, text:) ⇒ Object
292 293 294 |
# File 'lib/gemmy/patches/object_patch.rb', line 292 def write(file:, text:) File.open(file, 'w') { |f| f.write text } end |