class Object - cairo-1.16.4 Documentation

# class Object

### Public Instance Methods

required_pkg_config_package(package_info, native_package_info=nil) click to toggle source

    # File ext/cairo/extconf.rb, line 36
    def required_pkg_config_package(package_info, native_package_info=nil)
      if package_info.is_a?(Array)
        required_package_info = package_info
      else
        required_package_info = [package_info]
      end
      return true if PKGConfig.have_package(*required_package_info)

      native_package_info ||= {}
      return false unless NativePackageInstaller.install(native_package_info)

      PKGConfig.have_package(*required_package_info)
    end