lib/csl/treelike.rb in csl-1.2.0 vs lib/csl/treelike.rb in csl-1.2.1

- old
+ new

@@ -386,9 +386,13 @@ end def empty? all?(&:nil?) end + + def select(&block) + each.select(&block) + end # Adds the node as a child node. Raises ValidationError if none # of the Struct members matches the node's name. If there is # already a node set with this node name, the node will be pushed # to an array for that name.