Module: EchoUploads::PrmFileWriting
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/echo_uploads/prm_file_writing.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#echo_uploads_write_prm_file(attr, options) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/echo_uploads/prm_file_writing.rb', line 5 def echo_uploads_write_prm_file(attr, ) = send("#{attr}_metadata") writable_file = EchoUploads::WritableFile.new , if block_given? yield writable_file writable_file.close else writable_file end end |