Sha256: f7fb258497b5c14a4bc7b80f148c3e2957389a110e79be3328ba7bc9e9bb1c93

Contents?: true

Size: 705 Bytes

Versions: 171

Compression:

Stored size: 705 Bytes

Contents

module Expressir
  module Model
    module Expressions
      # Specified in ISO 10303-11:2004
      # - section 12.1 Arithmetic operators
      # - section 12.4.1 NOT operator
      class UnaryExpression < Expression
        MINUS = :MINUS
        NOT = :NOT
        PLUS = :PLUS

        model_attr_accessor :operator, ':MINUS, :NOT, :PLUS'
        model_attr_accessor :operand, 'Expression'

        # @param [Hash] options
        # @option options [:MINUS, :NOT, :PLUS] :operator
        # @option options [Expression] :operand
        def initialize(options = {})
          @operator = options[:operator]
          @operand = options[:operand]

          super
        end
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-1.2.4-arm64-darwin lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.4-aarch64-linux lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3 lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3-x86_64-linux lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3-x86_64-darwin lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3-x86-mingw32 lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3-x86-linux lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3-x64-mingw32 lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3-arm64-darwin lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.3-aarch64-linux lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.1 lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.1-x86_64-linux lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.1-x86_64-darwin lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.1-x86-mingw32 lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.1-x86-linux lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.1-x64-mingw32 lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.1-arm64-darwin lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.0 lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.0-x86_64-linux lib/expressir/model/expressions/unary_expression.rb
expressir-1.2.0-x86_64-darwin lib/expressir/model/expressions/unary_expression.rb