type

YamlList

const class YamlList : YamlObj

A YamlObj whose content always has the type YamlObj[]. For example, each item on the list below is itself a list:

- - a
  - b
  - c
- [a, b, c]

constructors

make

Creates a YamlList with the list val as content, found at location loc, with tag as its tag.

methods

each

Iterate the list items

val

Content value as a list

Slot Details

each

Void each(|YamlObj| f)

Iterate the list items

make

new make(YamlObj[] val, Str tag := "!", FileLoc loc := FileLoc.unknown)

Creates a YamlList with the list val as content, found at location loc, with tag as its tag.

val

virtual override YamlObj[] val()

Content value as a list