> For the complete documentation index, see [llms.txt](https://doc.tanmer.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.tanmer.cn/gem/yaml-yu-fa.md).

# YAML语法

## 数据继承

```ruby
require 'yaml'
y = YAML.load(<<-STR)
.base: &base "Tanmer Inc."
dev:
  name: *base
STR
# => {".base"=>"Tanmer Inc.", "dev"=>{"name"=>"Tanmer Inc."}}
```
