Module: ActiveSupport::XmlMini::FileLike

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/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



29
30
31
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/xml_mini.rb', line 29

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

#original_filenameObject



25
26
27
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/xml_mini.rb', line 25

def original_filename
  @original_filename || "untitled"
end