Method: Tengine::Core::Handler::Visitor#and

Defined in:
lib/tengine/core/handler.rb

#andObject



134
135
136
137
138
# File 'lib/tengine/core/handler.rb', line 134

def and
  children = @current["children"]
  # children.all?{|child| backup_current(child){ visit }} # これだと全てのchildrenについて評価せずfalseがあったら処理を抜けてしまいます。
  children.map{|child| backup_current(child){ visit }}.all?
end