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
- (Object) content_type
21 22 23 |
# File 'activesupport/lib/active_support/xml_mini.rb', line 21 def content_type @content_type || 'application/octet-stream' end |
- (Object) original_filename
17 18 19 |
# File 'activesupport/lib/active_support/xml_mini.rb', line 17 def original_filename @original_filename || 'untitled' end |