Created
March 16, 2019 12:43
-
-
Save marcosborges/17b52160278a46734c43507dce0c1034 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grapes( | |
@Grab(group='org.yaml', module='snakeyaml', version='1.23') | |
) | |
import org.yaml.snakeyaml.Yaml as Snakeyaml | |
class Yaml{ | |
def static parse(string){ | |
return new Snakeyaml().load(string) | |
} | |
def static stringify(obj){ | |
return new Snakeyaml().dump(obj) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment