Skip to content

Commit

Permalink
Update YamlCommand.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 25, 2013
1 parent eba117c commit 4cf19e8
Showing 1 changed file with 12 additions and 6 deletions.
Expand Up @@ -180,8 +180,10 @@ public void yaml(ReplaceableTagEvent event) {
// Check attributes
//

// <--
// <yaml[<id>].contains[<path>]> -> Element(Boolean)
// <--[tag]
// @attribute <yaml[<id>].contains[<path>]>
// @returns Element(Boolean)
// @description
// Returns true if the file has the specified path.
// Otherwise, returns false.
// -->
Expand All @@ -191,8 +193,10 @@ public void yaml(ReplaceableTagEvent event) {
return;
}

// <--
// <yaml[<id>].read[<path>]> -> Element
// <--[tag]
// @attribute <yaml[<id>].read[<path>]>
// @returns Element
// @description
// Returns the value of the key at the path.
// -->
if (attribute.startsWith("read")) {
Expand All @@ -207,8 +211,10 @@ public void yaml(ReplaceableTagEvent event) {
event.setReplaced(new Element(value).getAttribute(attribute.fulfill(1)));
}

// <--
// <yaml[<id>].list_keys[<path>]> -> Element
// <--[tag]
// @atribute <yaml[<id>].list_keys[<path>]>
// @returns Element
// @description
// Returns a dList of all the keys at the path.
// -->
if (attribute.startsWith("list_keys")) {
Expand Down

0 comments on commit 4cf19e8

Please sign in to comment.