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


166
167
168
# File 'lib/multi_xml.rb', line 166

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

#original_filenameObject


162
163
164
# File 'lib/multi_xml.rb', line 162

def original_filename
  @original_filename || 'untitled'
end