Sha256: a9718d2d2e8234ed484a171415c7435bb784a43af17e69621a620d5e45dab72c

Contents?: true

Size: 1.12 KB

Versions: 35

Compression:

Stored size: 1.12 KB

Contents

module Expressir
  module Model
    module Expressions
      class BinaryExpression < ModelElement
        ADDITION = :ADDITION
        AND = :AND
        ANDOR = :ANDOR
        COMBINE = :COMBINE
        EQUAL = :EQUAL
        EXPONENTIATION = :EXPONENTIATION
        GREATER_THAN = :GREATER_THAN
        GREATER_THAN_OR_EQUAL = :GREATER_THAN_OR_EQUAL
        IN = :IN
        INSTANCE_EQUAL = :INSTANCE_EQUAL
        INSTANCE_NOT_EQUAL = :INSTANCE_NOT_EQUAL
        INTEGER_DIVISION = :INTEGER_DIVISION
        LESS_THAN = :LESS_THAN
        LESS_THAN_OR_EQUAL = :LESS_THAN_OR_EQUAL
        LIKE = :LIKE
        MODULO = :MODULO
        MULTIPLICATION = :MULTIPLICATION
        NOT_EQUAL = :NOT_EQUAL
        OR = :OR
        REAL_DIVISION = :REAL_DIVISION
        SUBTRACTION = :SUBTRACTION
        XOR = :XOR

        model_attr_accessor :operator
        model_attr_accessor :operand1
        model_attr_accessor :operand2

        def initialize(options = {})
          @operator = options[:operator]
          @operand1 = options[:operand1]
          @operand2 = options[:operand2]

          super
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
expressir-1.0.0 lib/expressir/model/expressions/binary_expression.rb
expressir-1.0.0-x86_64-linux lib/expressir/model/expressions/binary_expression.rb
expressir-1.0.0-x86_64-darwin lib/expressir/model/expressions/binary_expression.rb
expressir-1.0.0-x86-mingw32 lib/expressir/model/expressions/binary_expression.rb
expressir-1.0.0-x86-linux lib/expressir/model/expressions/binary_expression.rb
expressir-1.0.0-x64-mingw32 lib/expressir/model/expressions/binary_expression.rb
expressir-1.0.0-arm64-darwin lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.27 lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.27-x86_64-linux lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.27-x86_64-darwin lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.27-x86-mingw32 lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.27-x86-linux lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.27-x64-mingw32 lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.27-arm64-darwin lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.26 lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.26-x86_64-linux lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.26-x86_64-darwin lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.26-x86-mingw32 lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.26-x86-linux lib/expressir/model/expressions/binary_expression.rb
expressir-0.2.26-x64-mingw32 lib/expressir/model/expressions/binary_expression.rb