Method: Factbase::ToYAML#yaml

Defined in:
lib/factbase/to_yaml.rb

#yamlString

Convert the entire factbase into YAML.

Returns:

  • (String)

    The factbase in YAML format



30
31
32
# File 'lib/factbase/to_yaml.rb', line 30

def yaml
  YAML.dump(Factbase::Flatten.new(Marshal.load(@fb.export), @sorter).it)
end