Class: MagicaVoxel::File
- Inherits:
-
Object
- Object
- MagicaVoxel::File
- Defined in:
- lib/magica_voxel/file.rb
Overview
The MagicaVoxel file
Instance Attribute Summary collapse
- #format ⇒ Object readonly
- #path ⇒ Object readonly
- #root ⇒ Object readonly
- #version ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(path) ⇒ File
constructor
A new instance of File.
-
#valid? ⇒ TrueClass|FalseClass
Is valid MagicaVoxel file.
Constructor Details
Instance Attribute Details
#format ⇒ Object (readonly)
11 12 13 |
# File 'lib/magica_voxel/file.rb', line 11 def format @format end |
#version ⇒ Object (readonly)
11 12 13 |
# File 'lib/magica_voxel/file.rb', line 11 def version @version end |
Instance Method Details
#valid? ⇒ TrueClass|FalseClass
Returns is valid MagicaVoxel file.
28 29 30 |
# File 'lib/magica_voxel/file.rb', line 28 def valid? format == 'VOX' end |