Sha256: 59f206a3c65f8043eaeed9042f34a815b1b655e223b31082df4aa358a6607096
Contents?: true
Size: 667 Bytes
Versions: 5
Compression:
Stored size: 667 Bytes
Contents
# frozen_string_literal: true module Arel module Nodes class Unary < Arel::Nodes::Node attr_accessor :expr alias :value :expr def initialize expr super() @expr = expr end def hash @expr.hash end def eql? other self.class == other.class && self.expr == other.expr end alias :== :eql? end %w{ Bin Cube DistinctOn Group GroupingElement GroupingSet Limit Lock Not Offset On Ordering RollUp Top }.each do |name| const_set(name, Class.new(Unary)) end end end
Version data entries
5 entries across 5 versions & 3 rubygems