Method: Scrivito::ObjClass#is_binary

Defined in:
lib/scrivito/obj_class.rb

#is_binaryBoolean Also known as: binary?

Deprecated.

Returns whether instances of this class are binary, e.g. images or PDFs.

Returns:

  • (Boolean)

    whether instances of this class are binary, e.g. images or PDFs

Raises:

  • (ScrivitoError)

    if the method is called on a non-legacy-type ObjClass



173
174
175
176
177
178
179
180
# File 'lib/scrivito/obj_class.rb', line 173

def is_binary
  if legacy_type?
    obj_class_data.is_binary
  else
    raise ScrivitoError,
      %(`is_binary' and `binary?' can only be called on ObjClasses with a legacy_type.)
  end
end