Sha256: 446604f819c31261b2c145c01d77b592ff56b1d0703bf3154efab86b1b4d7815
Contents?: true
Size: 653 Bytes
Versions: 26
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true module Arel # :nodoc: all module Nodes class And < Arel::Nodes::NodeExpression attr_reader :children def initialize(children) super() @children = children end def left children.first end def right children[1] end def fetch_attribute(&block) children.any? && children.all? { |child| child.fetch_attribute(&block) } end def hash children.hash end def eql?(other) self.class == other.class && self.children == other.children end alias :== :eql? end end end
Version data entries
26 entries across 25 versions & 5 rubygems