Module: Animoto::Support::ContentType::ClassMethods

Defined in:
lib/animoto/support/content_type.rb

Instance Method Summary collapse

Instance Method Details

#content_type(type) ⇒ String #content_typeString

Overloads:

  • #content_type(type) ⇒ String

    Sets the content type for this class.

    Parameters:

    • content_type (String)

      the type

    Returns:

    • (String)

      the content type

  • #content_typeString

    Returns the content type for this class.

    Returns:

    • (String)

      the content type



32
33
34
35
# File 'lib/animoto/support/content_type.rb', line 32

def content_type type = nil
  @content_type = type if type
  @content_type || infer_content_type
end