Method: Factbase#export
- Defined in:
- lib/factbase.rb
#export ⇒ String
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!
220 221 222 |
# File 'lib/factbase.rb', line 220 def export Marshal.dump(@maps) end |