123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::XmlMini::FileLike

Do not use. This module is for internal use only.
Relationships & Source Files
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

Instance Attribute Details

#content_type (rw)

[ GitHub ]

  
# File 'activesupport/lib/active_support/xml_mini.rb', line 29

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

#content_type=(value) (rw)

[ GitHub ]

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

attr_writer :original_filename, :content_type

#original_filename (rw)

[ GitHub ]

  
# File 'activesupport/lib/active_support/xml_mini.rb', line 25

def original_filename
  @original_filename || "untitled"
end

#original_filename=(value) (rw)

[ GitHub ]

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

attr_writer :original_filename, :content_type