Class: Iso9660::AlternateName
- Inherits:
-
Object
- Object
- Iso9660::AlternateName
- Defined in:
- lib/fs/iso9660/rock_ridge.rb
Overview
NOTE: IEEE-P1282 lists the following note about RESERVED3: Historically, this component has contained the network node name of the current system as defined in the uname structure of POSIX 4.4.1.2
Instance Attribute Summary collapse
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data, _suff) ⇒ AlternateName
constructor
A new instance of AlternateName.
Constructor Details
#initialize(data, _suff) ⇒ AlternateName
Returns a new instance of AlternateName.
193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/fs/iso9660/rock_ridge.rb', line 193 def initialize(data, _suff) an = RR_NM.decode(data) # Check for referential flags. @name = "" @name += "./" if an['flags'] & RR_EXT_NMF_CURRENT != 0 @name += "../" if an['flags'] & RR_EXT_NMF_PARENT != 0 raise "RR extension NM: RESERVED3 flag is set." if an['flags'] & RR_EXT_NMF_RESERVED3 != 0 # Reader data. @flags = an['flags'] @name += an['content'] end |
Instance Attribute Details
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
190 191 192 |
# File 'lib/fs/iso9660/rock_ridge.rb', line 190 def flags @flags end |
#name ⇒ Object
Returns the value of attribute name.
191 192 193 |
# File 'lib/fs/iso9660/rock_ridge.rb', line 191 def name @name end |