Sha256: b83c6846fd0c77e3db5289b688672025c024d407a4403fec50647f6c519b9d39

Contents?: true

Size: 515 Bytes

Versions: 9

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

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('DataDataSource')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta15 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta14 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta13 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta12 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta11 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta10 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta9 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta8 lib/ogr/driver_mixins/capability_methods.rb