Method: Scrivito::ObjClass#is_binary
- Defined in:
- lib/scrivito/obj_class.rb
#is_binary ⇒ Boolean Also known as: binary?
Deprecated.
Returns whether instances of this class are binary, e.g. images or PDFs.
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 |