Class: XFS::DirectoryBlockTail
- Inherits:
-
Object
- Object
- XFS::DirectoryBlockTail
- Defined in:
- lib/fs/xfs/directory_block_tail.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#stale ⇒ Object
readonly
Returns the value of attribute stale.
Instance Method Summary collapse
-
#initialize(data) ⇒ DirectoryBlockTail
constructor
A new instance of DirectoryBlockTail.
Constructor Details
#initialize(data) ⇒ DirectoryBlockTail
Returns a new instance of DirectoryBlockTail.
15 16 17 18 19 20 |
# File 'lib/fs/xfs/directory_block_tail.rb', line 15 def initialize(data) tail = DIRECTORY_BLOCK_TAIL.decode(data) @count = tail['count'] @stale = tail['stale'] @size = SIZEOF_DIRECTORY_BLOCK_TAIL end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
13 14 15 |
# File 'lib/fs/xfs/directory_block_tail.rb', line 13 def count @count end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
13 14 15 |
# File 'lib/fs/xfs/directory_block_tail.rb', line 13 def size @size end |
#stale ⇒ Object (readonly)
Returns the value of attribute stale.
13 14 15 |
# File 'lib/fs/xfs/directory_block_tail.rb', line 13 def stale @stale end |