類別 Psych::Visitors::DepthFirst

公開類別方法

new(區塊) 按一下以切換來源
# 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