Method: Etna::Filesystem#with_writeable
- Defined in:
- lib/etna/filesystem.rb
#with_writeable(dest, opts = 'w', size_hint: nil, &block) ⇒ Object
12 13 14 15 |
# File 'lib/etna/filesystem.rb', line 12 def with_writeable(dest, opts = 'w', size_hint: nil, &block) raise "with_writeable not supported by #{self.class.name}" unless self.class == Filesystem ::File.open(dest, opts, &block) end |