类 Psych::Visitors::DepthFirst

公共类方法

new(block) 点击切换源代码
# File ext/psych/lib/psych/visitors/depth_first.rb, line 5
def initialize block
  @block = block
end

私有实例方法

nary(o) 点击切换源代码
# File ext/psych/lib/psych/visitors/depth_first.rb, line 11
def nary o
  o.children.each { |x| visit x }
  @block.call o
end
terminal(o) 点击切换源代码
# File ext/psych/lib/psych/visitors/depth_first.rb, line 20
def terminal o
  @block.call o
end
visit_Psych_Nodes_Alias(o)
别名:terminal
visit_Psych_Nodes_Document(o)
别名:nary
visit_Psych_Nodes_Mapping(o)
别名:nary
visit_Psych_Nodes_Scalar(o)
别名:terminal
visit_Psych_Nodes_Sequence(o)
别名:nary
visit_Psych_Nodes_Stream(o)
别名:nary