Method: CmisServer::ContentStream#tempfile
- Defined in:
- lib/cmis_server/content_stream.rb
#tempfile(name = 'tempfile') ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/cmis_server/content_stream.rb', line 32 def tempfile(name='tempfile') t=Tempfile.new([name, ".#{default_extensions}"]) t.binmode t.write(self.content) t.close t.open t end |