Method: Vips.at_least_libvips?

Defined in:
lib/vips.rb

.at_least_libvips?(x, y) ⇒ Boolean

True if this is at least libvips x.y

Returns:

  • (Boolean)
[View source]

805
806
807
808
809
810
# File 'lib/vips.rb', line 805

def self.at_least_libvips?(x, y)
  major = version(0)
  minor = version(1)

  major > x || (major == x && minor >= y)
end