Module: XmlMini::FileLike

Defined in:
lib/xml_mini.rb

Overview

This module decorates files deserialized using Hash.from_minixml with the original_filename and content_type methods.

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeObject



20
21
22
# File 'lib/xml_mini.rb', line 20

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

#original_filenameObject



16
17
18
# File 'lib/xml_mini.rb', line 16

def original_filename
  @original_filename || 'untitled'
end