Methods
to_yamlfrag
yaml
Public Instance methods
As with to_yaml but removes the header line (i.e. ’—’) to create a "YAML fragment".
[ + ]
# File lib/lore/facets/yaml.rb, line 50 def to_yamlfrag y = to_yaml y.sub!(/---\ */, '') y end
Convenience method for loading YAML.
[ + ]
# File lib/lore/facets/yaml.rb, line 44 def yaml(*args,&blk) YAML.load(*args,&blk) end