Class: Caf::Chunk::Free

Inherits:
Base
  • Object
show all
Defined in:
lib/caf/chunk/free.rb

Instance Attribute Summary

Attributes inherited from Base

#chunk_size, #chunk_type

Instance Method Summary collapse

Methods inherited from Base

#check_type_and_size, implements, #initialize, #read_data

Constructor Details

This class inherits a constructor from Caf::Chunk::Base

Instance Method Details

#fields_sizeObject

Raises:



19
20
21
# File 'lib/caf/chunk/free.rb', line 19

def fields_size
  raise(Caf::Error, "not implemented")
end

#to_sObject



11
12
13
# File 'lib/caf/chunk/free.rb', line 11

def to_s
  "#{chunk_type} (free chunk)"
end

#validateObject



15
16
17
# File 'lib/caf/chunk/free.rb', line 15

def validate
  true
end