Module: MultiXml::FileLike

Defined in:
lib/multi_xml.rb

Overview

This module decorates files with the original_filename and content_type methods.

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeObject



113
114
115
# File 'lib/multi_xml.rb', line 113

def content_type
  @content_type || 'application/octet-stream'
end

#original_filenameObject



109
110
111
# File 'lib/multi_xml.rb', line 109

def original_filename
  @original_filename || 'untitled'
end