Matthew Lindfield Seager

Matthew Lindfield Seager

Today I Learned that to include a Ruby symbol in a YAML file it needs to be prefixed with !ruby/symbol

For example:

my_list_of_symbols:
  - !ruby/symbol one
  - !ruby/symbol two

becomes:

{ my_list_of_symbols: [:one, :two] }