Sha256: 2272f02cfa246b1d50553c10bc882ce3427088eadc25287e20ff53c732b1a917

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true
module Arel
  module Nodes

    class UnaryOperation < Unary
      include Arel::Expressions
      include Arel::Predications
      include Arel::OrderPredications
      include Arel::AliasPredication
      include Arel::Math

      attr_reader :operator

      def initialize operator, operand
        super(operand)
        @operator = operator
      end
    end

    class BitwiseNot < UnaryOperation
      def initialize operand
        super(:~, operand)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
spiral_form-0.1.1 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/unary_operation.rb
spiral_form-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/unary_operation.rb
nullifyable-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/unary_operation.rb
arel-9.0.0 lib/arel/nodes/unary_operation.rb
arel-8.0.0 lib/arel/nodes/unary_operation.rb