Method: MIME::Type#binary?

Defined in:
lib/s33r/mimetypes.rb

#binary?Boolean

MIME types can be specified to be sent across a network in particular formats. This method returns true when the MIME type encoding is set to base64.

Returns:

  • (Boolean)


405
406
407
# File 'lib/s33r/mimetypes.rb', line 405

def binary?
  @encoding == 'base64'
end