Package groovy.yaml

## Class YamlSlurper

- java.lang.Object
- - groovy.yaml.YamlSlurper

-     public class YamlSlurper
      extends Object

  Represents a YAML parser
  Since:
    3.0.0

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `YamlSlurper()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Object` | `parse​(Reader reader)` | Parse the content of the specified reader into a tree of Nodes.
    `Object` | `parseText​(String yaml)` | Parse the content of the specified yaml into a tree of Nodes.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### YamlSlurper

          public YamlSlurper()

  - ### Method Detail

    - #### parseText

          public Object parseText​(String yaml)

      Parse the content of the specified yaml into a tree of Nodes.
      Parameters:
        `yaml` - the content of yaml
      Returns:
        the root node of the parsed tree of Nodes

    - #### parse

          public Object parse​(Reader reader)

      Parse the content of the specified reader into a tree of Nodes.
      Parameters:
        `reader` - the reader of yaml
      Returns:
        the root node of the parsed tree of Nodes