gems/ruby/2.2.0/gems/form_data-0.1.0/lib/form_data.rb
# Tells whenever data contains multipart data or not.
#
# @param [Hash] data
# @return [Boolean]
Tells whenever data contains multipart data or not.
Tells whenever data contains multipart data or not .
def multipart?(data)
      data.any? do |_, v|
        next true if v.is_a? FormData::File
        v.respond_to?(:to_ary) && v.to_ary.any? { |av| av.is_a? FormData::File }
      end
    end
def multipart? ( data ) data . any? do | _ , v | next true if v . is_a? FormData :: File v . respond_to? ( :to_ary ) && v . to_ary . any? { | av | av . is_a? FormData :: File } end end
Tells whenever data contains multipart data or not.
Tells whenever data contains multipart data or not .
None
Boolean
data
<not_specific>
<not_specific>
None