Sha256: 389bba4180299ecf9c71e428f349235f8955878098f066b9b17022e6da29d699

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

require 'narray'

class NArray
  def type
    case typecode
    when 1 then :byte
    when 2 then :sint
    when 3 then :int
    when 4 then :sfloat
    when 5 then :float
    when 6 then :scomplex
    when 7 then :complex
    when 8 then :object
    else
      raise "Unknown typecode: #{typecode}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/ext/narray_ext.rb
ffi-gdal-1.0.0.beta6 lib/ext/narray_ext.rb