Class: HDF5::Empty

Inherits:
Object
  • Object
show all
Defined in:
lib/hdf5.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dtype) ⇒ Empty

Returns a new instance of Empty.



20
21
22
23
# File 'lib/hdf5.rb', line 20

def initialize(dtype)
  @dtype = dtype.is_a?(DType) ? dtype : DType.for_symbol(dtype)
  freeze
end

Instance Attribute Details

#dtypeObject (readonly)

Returns the value of attribute dtype.



18
19
20
# File 'lib/hdf5.rb', line 18

def dtype
  @dtype
end