class Psych::Visitors::DepthFirst
Public Class Methods
Source
# File ext/psych/lib/psych/visitors/depth_first.rb, line 5 def initialize block @block = block end
Private Instance Methods
Source
# File ext/psych/lib/psych/visitors/depth_first.rb, line 11 def nary o o.children.each { |x| visit x } @block.call o end
Source
# File ext/psych/lib/psych/visitors/depth_first.rb, line 20 def terminal o @block.call o end
Also aliased as: visit_Psych_Nodes_Scalar, visit_Psych_Nodes_Alias