Sha256: edb66e7394208883226ccf25b57a51db98fe6dd70fbb3adcf111d02293835d00

Contents?: true

Size: 484 Bytes

Versions: 4

Compression:

Stored size: 484 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta6 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta5 lib/ogr/driver_mixins/capability_methods.rb
ffi-gdal-1.0.0.beta4 lib/ogr/driver_mixins/capability_methods.rb