Sha256: 0552eed35ca759a1ac8078476a71a4164d3357dd8189cb0c428b8f95b5f66bf8
Contents?: true
Size: 570 Bytes
Versions: 4
Compression:
Stored size: 570 Bytes
Contents
module Arel module Nodes class Unary < Arel::Nodes::Node attr_accessor :expr alias :value :expr def initialize expr @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 Group Having Limit Not Offset On Ordering Top Lock DistinctOn }.each do |name| const_set(name, Class.new(Unary)) end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
challah-1.0.0 | vendor/bundle/gems/arel-4.0.0/lib/arel/nodes/unary.rb |
arel-4.0.0 | lib/arel/nodes/unary.rb |
arel-4.0.0.beta2 | lib/arel/nodes/unary.rb |
arel-4.0.0.beta1 | lib/arel/nodes/unary.rb |