Module: ActiveSupport::XmlMini::FileLike

Defined in:
activesupport/lib/active_support/xml_mini.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeObject



22
23
24
# File 'activesupport/lib/active_support/xml_mini.rb', line 22

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

#original_filenameObject



18
19
20
# File 'activesupport/lib/active_support/xml_mini.rb', line 18

def original_filename
  @original_filename || 'untitled'
end