class YamlPath::PathStack
Public Class Methods
new()
click to toggle source
# File lib/yaml_path/tree_builder.rb, line 5 def initialize @stack = ['$'] end
Public Instance Methods
match?(yaml_path_str)
click to toggle source
# File lib/yaml_path/tree_builder.rb, line 17 def match?(yaml_path_str) yaml_path_str == @stack.join('.') end
pop()
click to toggle source
# File lib/yaml_path/tree_builder.rb, line 13 def pop @stack.pop end
push(node)
click to toggle source
# File lib/yaml_path/tree_builder.rb, line 9 def push(node) @stack.push(node) end