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



168
169
170
# File 'lib/multi_xml.rb', line 168

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

#original_filenameObject



164
165
166
# File 'lib/multi_xml.rb', line 164

def original_filename
  @original_filename || "untitled"
end