Class: Omnizip::Formats::FormatSpecification
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Omnizip::Formats::FormatSpecification
- Defined in:
- lib/omnizip/formats/format_spec_loader.rb
Overview
Model class representing a format specification
This class uses Lutaml::Model to provide a structured representation of format specifications loaded from YAML files.
Instance Method Summary collapse
-
#[](key) ⇒ Object
Get a value from the format specification.
-
#magic_bytes ⇒ Array<Integer>
Get magic bytes as an array of integers.
-
#name ⇒ String
Get the format name.
-
#version ⇒ String
Get the format version.
Instance Method Details
#[](key) ⇒ Object
Get a value from the format specification
202 203 204 |
# File 'lib/omnizip/formats/format_spec_loader.rb', line 202 def [](key) format.public_send(key) end |
#magic_bytes ⇒ Array<Integer>
Get magic bytes as an array of integers
209 210 211 |
# File 'lib/omnizip/formats/format_spec_loader.rb', line 209 def magic_bytes format.magic_bytes end |
#name ⇒ String
Get the format name
216 217 218 |
# File 'lib/omnizip/formats/format_spec_loader.rb', line 216 def name format.name end |
#version ⇒ String
Get the format version
223 224 225 |
# File 'lib/omnizip/formats/format_spec_loader.rb', line 223 def version format.version end |