Sha256: e891be1732e70bde2f786a201e13569b9d2f161d939c00d560cca7364a7d30dd
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
# frozen_string_literal: true module Arel # :nodoc: all module Nodes class Node include Enumerable # Iterate through AST, nodes will be yielded depth-first def each(&block) return enum_for(:each) unless block_given? ::Arel::Visitors::DepthFirst.new(block).accept self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-arel_depth_first-1.0.1 | lib/activerecord-arel_depth_first/nodes/node.rb |