Sha256: 71e8fa4cf057cce61e3af79350903132fbf76591519e5a2036aadbfa1aba3d15

Contents?: true

Size: 430 Bytes

Versions: 31

Compression:

Stored size: 430 Bytes

Contents

module Arel
  module Nodes
    class Extract < Arel::Nodes::Unary
      include Arel::AliasPredication
      include Arel::Predications

      attr_accessor :field

      def initialize expr, field
        super(expr)
        @field = field
      end

      def hash
        super ^ @field.hash
      end

      def eql? other
        super &&
          self.field == other.field
      end
      alias :== :eql?
    end
  end
end

Version data entries

31 entries across 30 versions & 9 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/arel-6.0.4/lib/arel/nodes/extract.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/arel-7.1.4/lib/arel/nodes/extract.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/nodes/extract.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/nodes/extract.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/nodes/extract.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/nodes/extract.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/nodes/extract.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/nodes/extract.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-7.1.4/lib/arel/nodes/extract.rb
abaci-0.3.0 vendor/bundle/gems/arel-7.1.0/lib/arel/nodes/extract.rb
arel-6.0.4 lib/arel/nodes/extract.rb
arel-7.1.4 lib/arel/nodes/extract.rb
arel-7.1.3 lib/arel/nodes/extract.rb
arel-7.1.2 lib/arel/nodes/extract.rb
arel-7.1.1 lib/arel/nodes/extract.rb
arel-7.1.0 lib/arel/nodes/extract.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-6.0.3/lib/arel/nodes/extract.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/arel-6.0.3/lib/arel/nodes/extract.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/arel-6.0.3/lib/arel/nodes/extract.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/arel-6.0.3/lib/arel/nodes/extract.rb