Sha256: 166cb456fba37282ec6662452fa2fb64eee46136a12df71ff751db4e67045371
Contents?: true
Size: 598 Bytes
Versions: 3
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true require 'ogr/driver' module OGR module DriverMixins # Helper methods for testing capabilities of the current driver. module CapabilityMethods # @return [Boolean] +true+ if this driver supports creating data sources. def can_create_data_source? test_capability('CreateDataSource') end # @return [Boolean] +true+ if this driver supports deleting data sources. def can_delete_data_source? test_capability('DeleteDataSource') end end end end OGR::Driver.include(OGR::DriverMixins::CapabilityMethods)
Version data entries
3 entries across 3 versions & 1 rubygems