Method: Factbase#export

Defined in:
lib/factbase.rb

#exportString

Export it into a chain of bytes.

Here is how you can export it to a file, for example:

fb = Factbase.new
fb.insert.foo = 42
File.binwrite("foo.fb", fb.export)

The data is binary, it’s not a text!

Returns:

  • (String)

    Binary string containing serialized data



220
221
222
# File 'lib/factbase.rb', line 220

def export
  Marshal.dump(@maps)
end