class DBF::Memo::Base
Constants
- BLOCK_HEADER_SIZE
- BLOCK_SIZE
Public Class Methods
Source
# File lib/dbf/memo/base.rb, line 11 def initialize(data, version) @data = data @version = version end
Source
# File lib/dbf/memo/base.rb, line 7 def self.open(filename, version) new(File.open(filename, 'rb'), version) end
Public Instance Methods
Source
# File lib/dbf/memo/base.rb, line 16 def get(start_block) return nil unless start_block > 0 build_memo start_block end