Class: HDF5::Empty
- Inherits:
-
Object
- Object
- HDF5::Empty
- Defined in:
- lib/hdf5.rb
Instance Attribute Summary collapse
-
#dtype ⇒ Object
readonly
Returns the value of attribute dtype.
Instance Method Summary collapse
-
#initialize(dtype) ⇒ Empty
constructor
A new instance of Empty.
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
#dtype ⇒ Object (readonly)
Returns the value of attribute dtype.
18 19 20 |
# File 'lib/hdf5.rb', line 18 def dtype @dtype end |